summary refs log tree commit diff
path: root/pkgs/test/simple
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/test/simple
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/test/simple')
-rwxr-xr-xpkgs/test/simple/builder.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/test/simple/builder.sh b/pkgs/test/simple/builder.sh
index c155bdc3615..282fc520bd1 100755
--- a/pkgs/test/simple/builder.sh
+++ b/pkgs/test/simple/builder.sh
@@ -4,7 +4,7 @@ export NIX_DEBUG=1
 
 . $stdenv/setup
 
-export NIX_CFLAGS_COMPILE="-v $NIX_CFLAGS_COMPILE"
+#export NIX_CFLAGS_COMPILE="-v $NIX_CFLAGS_COMPILE"
 
 mkdir $out
 mkdir $out/bin
@@ -19,7 +19,8 @@ int main(int argc, char * * argv)
 }
 EOF
 
-gcc hello.c -o $out/bin/hello
+#gcc -I/nix/store/foo -I /nix/store/foo -I/usr/lib -I /usr/lib hello.c -o $out/bin/hello
+gcc -L /nix/store/abcd/lib -isystem /usr/lib hello.c -o $out/bin/hello
 
 $out/bin/hello