cc-wrapper: Fix a typo in param parsing (close #14401)

This commit is contained in:
Tomasz Kontusz 2016-04-02 19:19:53 +02:00 committed by Vladimír Čunát
parent d681d580ae
commit 6c9ce23c00

View File

@ -46,9 +46,9 @@ while [ $n -lt ${#params[*]} ]; do
isCpp=1
elif [ "$p" = -nostdlib ]; then
isCpp=-1
elif [ "${i:0:1}" != - ]; then
elif [ "${p:0:1}" != - ]; then
nonFlagArgs=1
elif [ "$i" = -m32 ]; then
elif [ "$p" = -m32 ]; then
if [ -e @out@/nix-support/dynamic-linker-m32 ]; then
NIX_LDFLAGS="$NIX_LDFLAGS -dynamic-linker $(cat @out@/nix-support/dynamic-linker-m32)"
fi