common/wrappers/cross-cc: catch -L/lib in args.
Issue spotted while building geda.
This commit is contained in:
committed by
Érico Nogueira Rolim
parent
720f2c1c52
commit
811f311dd2
@@ -16,7 +16,7 @@ while [ $i -lt ${#ARGS[@]} ]; do
|
|||||||
fi
|
fi
|
||||||
unset incpath
|
unset incpath
|
||||||
elif [ "$libpath" ]; then
|
elif [ "$libpath" ]; then
|
||||||
if [ "$arg" = "/usr/lib" ]; then
|
if [ "$arg" = "/usr/lib" -o "$arg" = "/lib" ]; then
|
||||||
echo "[cc-wrapper] ignoring -L $arg"
|
echo "[cc-wrapper] ignoring -L $arg"
|
||||||
else
|
else
|
||||||
MYARGS+=("-L${arg}")
|
MYARGS+=("-L${arg}")
|
||||||
@@ -26,7 +26,7 @@ while [ $i -lt ${#ARGS[@]} ]; do
|
|||||||
incpath=1
|
incpath=1
|
||||||
elif [ "$arg" = "-L" ]; then
|
elif [ "$arg" = "-L" ]; then
|
||||||
libpath=1
|
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"
|
echo "[cc-wrapper] ignoring $arg"
|
||||||
else
|
else
|
||||||
MYARGS+=("${arg}")
|
MYARGS+=("${arg}")
|
||||||
|
|||||||
Reference in New Issue
Block a user