* Support the case where gcc has been built without g++.

svn path=/nixpkgs/trunk/; revision=12196
This commit is contained in:
Eelco Dolstra 2008-06-26 11:09:00 +00:00
parent 1cdb7e4831
commit eb8618ea41

View File

@ -40,7 +40,9 @@ else
# Glibc headers, since they appear *before* the libstdc++ headers.
# So we add them here using -isystem. Note that `add-flags' adds
# the libc flags before the gcc flags.
gccCFlags="$gccCFlags -isystem $(echo $gcc/include/c++/*.*)"
if test -e $gcc/include/c++/*.*; then
gccCFlags="$gccCFlags -isystem $(echo $gcc/include/c++/*.*)"
fi
# GCC shows $gcc/lib in `gcc -print-search-dirs', but not
# $gcc/lib64 (even though it does actually search there...)..