cross-cc: always unset incpath and libpath

Closes #2823
This commit is contained in:
Jürgen Buchmüller 2015-10-25 13:30:52 +01:00
parent 4ba12ec416
commit 25bdf1945d
1 changed files with 2 additions and 2 deletions

View File

@ -11,17 +11,17 @@ while [ $i -lt ${#ARGS[@]} ]; do
if [ "$incpath" ]; then
if [ "$arg" = "/usr/include" ]; then
echo "[cc-wrapper] ignoring -I $arg"
unset incpath
else
MYARGS+=("-I${arg}")
fi
unset incpath
elif [ "$libpath" ]; then
if [ "$arg" = "/usr/lib" ]; then
echo "[cc-wrapper] ignoring -L $arg"
unset libpath
else
MYARGS+=("-L${arg}")
fi
unset libpath
elif [ "$arg" = "-I" ]; then
incpath=1
elif [ "$arg" = "-L" ]; then