summary refs log tree commit diff
path: root/pkgs/build-support/gcc-wrapper/setup-hook.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-04-04 22:02:41 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-04-04 22:02:41 +0000
commitbeaff0a8929b14bca736cb96a1bbf4c2e1c604d6 (patch)
treec93f32f82be57ea066cc2ebb5c919fe1b9f4b7ad /pkgs/build-support/gcc-wrapper/setup-hook.sh
parent0d4967fc35631ebfe9869739d01e713d60bd21ff (diff)
* Ensure that when building gcc, libstdc++ is linked against the
  libgcc of the gcc being built, not the gcc building it.
* Only include a directory in the rpath of an executable/library if it
  is actually used.  Before, the `/lib' directory of every build input
  was added to the rpath, causing many unnecessary retained
  dependencies.  For instance, Perl has a `/lib' directory, but most
  applications whose build process uses Perl don't actually link
  against Perl.  (Also added a test for this.)
* After building glibc, remove glibcbug, to prevent a retained
  dependency on gcc.
* Add a newline after `building X' in GNU Make.

svn path=/nixpkgs/trunk/; revision=911
Diffstat (limited to 'pkgs/build-support/gcc-wrapper/setup-hook.sh')
-rw-r--r--pkgs/build-support/gcc-wrapper/setup-hook.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/gcc-wrapper/setup-hook.sh b/pkgs/build-support/gcc-wrapper/setup-hook.sh
index a52ca43d9df85..7a7ea82269190 100644
--- a/pkgs/build-support/gcc-wrapper/setup-hook.sh
+++ b/pkgs/build-support/gcc-wrapper/setup-hook.sh
@@ -4,7 +4,7 @@ addCVars () {
     fi
 
     if test -d $1/lib; then
-        export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib -rpath $1/lib"
+        export NIX_LDFLAGS="$NIX_LDFLAGS -L$1/lib"
     fi
 }