* gcc-wrapper now filters out -L and -I flags referring to paths

outside the store (in pure builds).

svn path=/nixpkgs/trunk/; revision=817
This commit is contained in:
Eelco Dolstra
2004-03-08 18:29:08 +00:00
parent ce50734cf0
commit 946a2d4a48
10 changed files with 68 additions and 15 deletions

View File

@@ -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@