summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-03-08 18:29:08 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-03-08 18:29:08 +0000
commit946a2d4a4824d415e3c2c306dd7b4c1360946662 (patch)
treed6d51221bcfb90e9341c93fa04efd02bf387bd5a /pkgs/stdenv/generic
parentce50734cf067496ae50d1a6fd139fc03de283cbc (diff)
downloadnixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar.gz
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar.bz2
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar.lz
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar.xz
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.tar.zst
nixpkgs-946a2d4a4824d415e3c2c306dd7b4c1360946662.zip
* gcc-wrapper now filters out -L and -I flags referring to paths
  outside the store (in pure builds).

svn path=/nixpkgs/trunk/; revision=817
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index c163c04cb51..4530a1b1319 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -21,6 +21,11 @@ param5=@param5@
 . @preHook@
 
 
+if test -f @gcc@/nix-support/setup-hook; then
+    . @gcc@/nix-support/setup-hook
+fi
+
+    
 # Recursively find all build inputs.
 findInputs()
 {
@@ -76,6 +81,10 @@ export NIX_STRIP_DEBUG=1
 export NIX_CFLAGS_STRIP="-g0 -Wl,-s"
 
 
+# Where is the store?  This is required for purity checking.
+export NIX_STORE=$(dirname $out)/ # !!! hack
+
+
 # Execute the post-hook.
 . @postHook@