From 17ff3b3f3590c4d9bbd02b07ac5200e5cf07afb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 20 Dec 2020 18:35:58 -0300 Subject: [PATCH 1/2] common/wrappers/cross-cc: catch -L/lib in args. Issue spotted while building geda. --- common/wrappers/cross-cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc index 618ccbea567..551bc3711d0 100644 --- a/common/wrappers/cross-cc +++ b/common/wrappers/cross-cc @@ -16,7 +16,7 @@ while [ $i -lt ${#ARGS[@]} ]; do fi unset incpath elif [ "$libpath" ]; then - if [ "$arg" = "/usr/lib" ]; then + if [ "$arg" = "/usr/lib" ] || [ "$arg" = "/lib" ]; then echo "[cc-wrapper] ignoring -L $arg" else MYARGS+=("-L${arg}") From 743e9d7328cdaf01a1fb45d957672d7afd429b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 20 Dec 2020 18:45:08 -0300 Subject: [PATCH 2/2] geda: remove -L/lib workaround. Now part of cross-cc wrapper. --- srcpkgs/geda/template | 7 ------- 1 file changed, 7 deletions(-) diff --git a/srcpkgs/geda/template b/srcpkgs/geda/template index 57b6592ce14..2e920b2d89b 100644 --- a/srcpkgs/geda/template +++ b/srcpkgs/geda/template @@ -28,13 +28,6 @@ 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 }