about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-12-22 17:53:35 +0100
committerLluís Batlle i Rossell <viric@viric.name>2012-12-26 22:00:33 +0000
commit651734b6193491478d06a9b268200ffefbb2d5d1 (patch)
tree2d602fc71b7ae4823224b56023443be509faf291 /pkgs/development/compilers
parent2194b98565d644a5a255f5498e3b392e27e1ae3d (diff)
downloadnixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar.gz
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar.bz2
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar.lz
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar.xz
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.tar.zst
nixlib-651734b6193491478d06a9b268200ffefbb2d5d1.zip
gcc/gcc-cross-wrapper: making gcc47 work with uclibc
It wants pthreads, and libpthreads wants libdl, and this can
only be found with -rpath-link when cross building.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/gcc/4.7/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/4.7/builder.sh b/pkgs/development/compilers/gcc/4.7/builder.sh
index 4ae7a1c193b9..d0ee80a58afb 100644
--- a/pkgs/development/compilers/gcc/4.7/builder.sh
+++ b/pkgs/development/compilers/gcc/4.7/builder.sh
@@ -71,7 +71,7 @@ if test "$noSysDirs" = "1"; then
         unset CPATH
         if test -z "$crossStageStatic"; then
             EXTRA_TARGET_CFLAGS="-B${libcCross}/lib -idirafter ${libcCross}/include"
-            EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib"
+            EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib"
         fi
     else
         if test -z "$NIX_GCC_CROSS"; then