about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-02 14:55:44 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-02 14:55:44 +0200
commit289895fe2ceae2ade5aad635018eaeeaeaa669c6 (patch)
treea39229227f3de252b451fbdc6a28bf620b490d8b /pkgs/build-support
parent0da7fadce32289e926415629a697028aa7296b96 (diff)
downloadnixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar.gz
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar.bz2
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar.lz
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar.xz
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.tar.zst
nixlib-289895fe2ceae2ade5aad635018eaeeaeaa669c6.zip
Fix SNAFU using $NIX_LDFLAGS_AFTER
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/gcc-wrapper/ld-wrapper.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/gcc-wrapper/ld-wrapper.sh b/pkgs/build-support/gcc-wrapper/ld-wrapper.sh
index 5b8af068a00c..822c4a03a218 100644
--- a/pkgs/build-support/gcc-wrapper/ld-wrapper.sh
+++ b/pkgs/build-support/gcc-wrapper/ld-wrapper.sh
@@ -48,10 +48,12 @@ extra=()
 extraBefore=()
 
 if test -z "$NIX_LDFLAGS_SET"; then
-    extra+=($NIX_LDFLAGS $NIX_LDFLAGS_AFTER)
+    extra+=($NIX_LDFLAGS)
     extraBefore+=($NIX_LDFLAGS_BEFORE)
 fi
 
+extra+=($NIX_LDFLAGS_AFTER)
+
 
 # Add all used dynamic libraries to the rpath.
 if test "$NIX_DONT_SET_RPATH" != "1"; then