parent
4ba12ec416
commit
25bdf1945d
1 changed files with 2 additions and 2 deletions
|
@ -11,17 +11,17 @@ while [ $i -lt ${#ARGS[@]} ]; do
|
||||||
if [ "$incpath" ]; then
|
if [ "$incpath" ]; then
|
||||||
if [ "$arg" = "/usr/include" ]; then
|
if [ "$arg" = "/usr/include" ]; then
|
||||||
echo "[cc-wrapper] ignoring -I $arg"
|
echo "[cc-wrapper] ignoring -I $arg"
|
||||||
unset incpath
|
|
||||||
else
|
else
|
||||||
MYARGS+=("-I${arg}")
|
MYARGS+=("-I${arg}")
|
||||||
fi
|
fi
|
||||||
|
unset incpath
|
||||||
elif [ "$libpath" ]; then
|
elif [ "$libpath" ]; then
|
||||||
if [ "$arg" = "/usr/lib" ]; then
|
if [ "$arg" = "/usr/lib" ]; then
|
||||||
echo "[cc-wrapper] ignoring -L $arg"
|
echo "[cc-wrapper] ignoring -L $arg"
|
||||||
unset libpath
|
|
||||||
else
|
else
|
||||||
MYARGS+=("-L${arg}")
|
MYARGS+=("-L${arg}")
|
||||||
fi
|
fi
|
||||||
|
unset libpath
|
||||||
elif [ "$arg" = "-I" ]; then
|
elif [ "$arg" = "-I" ]; then
|
||||||
incpath=1
|
incpath=1
|
||||||
elif [ "$arg" = "-L" ]; then
|
elif [ "$arg" = "-L" ]; then
|
||||||
|
|
Loading…
Reference in a new issue