diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-11 17:26:14 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-11 17:26:14 +0000 |
commit | de13527000165c566e47d2146a1a6480fc67da59 (patch) | |
tree | 12f84ad99f15678dde1c6282ed78db37e776914a /pkgs/build-support/gcc-wrapper/ld-wrapper.sh | |
parent | a1b3ae0c8121b932beeceb46bef816bdb2a9f180 (diff) | |
download | nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar.gz nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar.bz2 nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar.lz nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar.xz nixlib-de13527000165c566e47d2146a1a6480fc67da59.tar.zst nixlib-de13527000165c566e47d2146a1a6480fc67da59.zip |
* Finally got stdenv-nix-linux working again. Still not perfect,
though. * libxml2: upgrade to latest. * octavefront/rna: keep debug info. svn path=/nixpkgs/trunk/; revision=830
Diffstat (limited to 'pkgs/build-support/gcc-wrapper/ld-wrapper.sh')
-rw-r--r-- | pkgs/build-support/gcc-wrapper/ld-wrapper.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/build-support/gcc-wrapper/ld-wrapper.sh b/pkgs/build-support/gcc-wrapper/ld-wrapper.sh index c94f24833c70..bf59b2a8afbb 100644 --- a/pkgs/build-support/gcc-wrapper/ld-wrapper.sh +++ b/pkgs/build-support/gcc-wrapper/ld-wrapper.sh @@ -12,7 +12,7 @@ skip () { } params=("$@") -if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then +if test "$NIX_ENFORCE_PURITY" = "1x" -a -n "$NIX_STORE"; then rest=() n=0 while test $n -lt ${#params[*]}; do @@ -22,10 +22,12 @@ if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then skip $p elif test "$p" = "-L" -a "${p2:0:${#NIX_STORE}}" != "$NIX_STORE"; then n=$((n + 1)); skip $p2 - elif test "${p:0:1}" = "/" -a "${p:0:${#NIX_STORE}}" != "$NIX_STORE"; then - # We cannot skip this; barf. - echo "impure path \`$p' used in link" - exit 1 + elif test "$p" = "-dynamic-linker" -a "${p2:0:${#NIX_STORE}}" != "$NIX_STORE"; then + n=$((n + 1)); skip $p2 +# elif test "${p:0:1}" = "/" -a "${p:0:${#NIX_STORE}}" != "$NIX_STORE"; then +# # We cannot skip this; barf. +# echo "impure path \`$p' used in link" +# exit 1 else rest=("${rest[@]}" "$p") fi |