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] 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}")