geda: fix cross builds.
This commit is contained in:
parent
4afa89118c
commit
06a99096ea
|
@ -20,12 +20,6 @@ CFLAGS="-Wno-deprecated-declarations -fcommon"
|
||||||
python_version=2
|
python_version=2
|
||||||
replaces="geda-data>=0"
|
replaces="geda-data>=0"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
|
|
||||||
broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
CFLAGS="-Wno-unused-function"
|
CFLAGS="-Wno-unused-function"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
@ -34,6 +28,13 @@ pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
# the build system somehow adds -L/lib to the makefiles,
|
||||||
|
# which breaks cross builds and is unnecessary for
|
||||||
|
# native builds. remove the flag
|
||||||
|
find . -name Makefile -exec sed s,-L/lib,, -i "{}" \;
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -f ${DESTDIR}/usr/share/applications/mimeinfo.cache
|
rm -f ${DESTDIR}/usr/share/applications/mimeinfo.cache
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue