summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper/cc-wrapper.sh
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-04-07 14:35:03 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-04-07 14:40:51 +0200
commitd1df28f8e5b98be01417ffc1032020415390f2a0 (patch)
tree0e2024acd74c6ce3fb4614eadb04abe632835f71 /pkgs/build-support/cc-wrapper/cc-wrapper.sh
parent056b5a1a5f2a4096dd39db2265e5ca369c03ec15 (diff)
parentc55cfe0cb3425fb926219cf7dde8714f3d143744 (diff)
downloadnixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar.gz
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar.bz2
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar.lz
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar.xz
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.tar.zst
nixpkgs-d1df28f8e5b98be01417ffc1032020415390f2a0.zip
Merge 'staging' into closure-size
This is mainly to get the update of bootstrap tools.
Otherwise there were mysterious segfaults:
https://github.com/NixOS/nixpkgs/pull/7701#issuecomment-203389817
Diffstat (limited to 'pkgs/build-support/cc-wrapper/cc-wrapper.sh')
-rw-r--r--pkgs/build-support/cc-wrapper/cc-wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/cc-wrapper/cc-wrapper.sh b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
index ddb549a2a13..894ea95b5fa 100644
--- a/pkgs/build-support/cc-wrapper/cc-wrapper.sh
+++ b/pkgs/build-support/cc-wrapper/cc-wrapper.sh
@@ -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