From 06a99096eab512091103ad3b8251a8506c92f693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 20 Dec 2020 18:30:04 -0300 Subject: [PATCH] geda: fix cross builds. --- srcpkgs/geda/template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template index 3758d466c15..57b6592ce14 100644 --- a/srcpkgs/geda/template +++ b/srcpkgs/geda/template @@ -20,12 +20,6 @@ CFLAGS="-Wno-deprecated-declarations -fcommon" python_version=2 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" pre_configure() { @@ -34,6 +28,13 @@ pre_configure() { 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() { rm -f ${DESTDIR}/usr/share/applications/mimeinfo.cache }