From 811f311dd2802252b43a56f3a547171921c659eb 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc index 618ccbea567..f5333a03bb2 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" -o "$arg" = "/lib" ]; then echo "[cc-wrapper] ignoring -L $arg" else MYARGS+=("-L${arg}") @@ -26,7 +26,7 @@ while [ $i -lt ${#ARGS[@]} ]; do incpath=1 elif [ "$arg" = "-L" ]; then libpath=1 - elif [ "$arg" = "-I/usr/include" -o "$arg" = "-L/usr/lib" ]; then + elif [ "$arg" = "-I/usr/include" -o "$arg" = "-L/usr/lib" -o "$arg" = "-L/lib" ]; then echo "[cc-wrapper] ignoring $arg" else MYARGS+=("${arg}")