diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-08 18:29:08 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-08 18:29:08 +0000 |
commit | 946a2d4a4824d415e3c2c306dd7b4c1360946662 (patch) | |
tree | d6d51221bcfb90e9341c93fa04efd02bf387bd5a /pkgs/test/simple | |
parent | ce50734cf067496ae50d1a6fd139fc03de283cbc (diff) |
* 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-x | pkgs/test/simple/builder.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/test/simple/builder.sh b/pkgs/test/simple/builder.sh index c155bdc361557..282fc520bd1f7 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 |