File tree 2 files changed +6
-6
lines changed
pkgs/build-support/cc-wrapper
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ while [ $n -lt ${#params[*]} ]; do
55
55
nonFlagArgs=1
56
56
elif [ " $p " = -m32 ]; then
57
57
if [ -e @out@/nix-support/dynamic-linker-m32 ]; then
58
- NIX_LDFLAGS= " $NIX_LDFLAGS -dynamic-linker $( cat @out@/nix-support/dynamic-linker-m32) "
58
+ NIX_LDFLAGS+= " -dynamic-linker $( cat @out@/nix-support/dynamic-linker-m32) "
59
59
fi
60
60
fi
61
61
n=$(( n + 1 ))
111
111
112
112
if [[ " $isCpp " = 1 ]]; then
113
113
if [[ " $cppInclude " = 1 ]]; then
114
- NIX_CFLAGS_COMPILE= " $NIX_CFLAGS_COMPILE ${NIX_CXXSTDLIB_COMPILE-@ default_cxx_stdlib_compile@ } "
114
+ NIX_CFLAGS_COMPILE+= " ${NIX_CXXSTDLIB_COMPILE-@ default_cxx_stdlib_compile@ } "
115
115
fi
116
- NIX_CFLAGS_LINK= " $NIX_CFLAGS_LINK $NIX_CXXSTDLIB_LINK "
116
+ NIX_CFLAGS_LINK+= " $NIX_CXXSTDLIB_LINK "
117
117
fi
118
118
119
119
LD=@ldPath@/ld
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ if [ "$NIX_DONT_SET_RPATH" != 1 ]; then
79
79
case $libPath in
80
80
* \ $path \ * ) return 0 ;;
81
81
esac
82
- libPath= " $libPath $path "
82
+ libPath+= " $path "
83
83
}
84
84
85
85
addToRPath () {
@@ -90,12 +90,12 @@ if [ "$NIX_DONT_SET_RPATH" != 1 ]; then
90
90
case $rpath in
91
91
* \ $1 \ * ) return 0 ;;
92
92
esac
93
- rpath= " $rpath $1 "
93
+ rpath+= " $1 "
94
94
}
95
95
96
96
libs=" "
97
97
addToLibs () {
98
- libs= " $libs $1 "
98
+ libs+= " $1 "
99
99
}
100
100
101
101
rpath=" "
You can’t perform that action at this time.
0 commit comments