diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc index 0818c450de1..618ccbea567 100644 --- a/common/wrappers/cross-cc +++ b/common/wrappers/cross-cc @@ -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