GCC 4.4: Make sure $PWD is not in $CPATH and $LIBRARY_PATH.

svn path=/nixpkgs/trunk/; revision=16520
This commit is contained in:
Ludovic Courtès 2009-07-30 12:25:07 +00:00
parent acbfd2f679
commit 89fa345b84

View File

@ -42,10 +42,10 @@ if test "$noSysDirs" = "1"; then
# Setting $CPATH makes sure both `gcc' and `xgcc' find the C
# library headers, regarless of the language being compiled.
export CPATH="$NIX_FIXINC_DUMMY:$CPATH"
export CPATH="$NIX_FIXINC_DUMMY${CPATH:+:}$CPATH"
# Likewise, to help it find `crti.o' and similar files.
export LIBRARY_PATH="$glibc_libdir:$LIBRARY_PATH"
export LIBRARY_PATH="$glibc_libdir${LIBRARY_PATH:+:}$LIBRARY_PATH"
echo "setting \$CPATH to \`$CPATH'"
echo "setting \$LIBRARY_PATH to \`$LIBRARY_PATH'"