summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-12-10 17:34:53 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-12-10 17:36:15 -0500
commit4e4520a0f33fba9f2109f2991d0ed4a3bd328746 (patch)
treecd386c642cbd33414790917381246d2364b0a01d /pkgs/development/compilers/gcc
parent0c88078d3719e02a10a492ca3fc706f18ecbf012 (diff)
downloadnixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar.gz
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar.bz2
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar.lz
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar.xz
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.tar.zst
nixlib-4e4520a0f33fba9f2109f2991d0ed4a3bd328746.zip
gcc: Don't choke if there is no lib output
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/builder.sh b/pkgs/development/compilers/gcc/builder.sh
index d21755d7b1dc..0765daee4534 100644
--- a/pkgs/development/compilers/gcc/builder.sh
+++ b/pkgs/development/compilers/gcc/builder.sh
@@ -12,7 +12,7 @@ mkdir "$NIX_FIXINC_DUMMY"
 if test "$staticCompiler" = "1"; then
     EXTRA_LDFLAGS="-static"
 else
-    EXTRA_LDFLAGS="-Wl,-rpath,$lib/lib"
+    EXTRA_LDFLAGS="-Wl,-rpath,${!outputLib}/lib"
 fi