From 274b450ab86118d59d862e0ef40c4c9a943469fb Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 16 Sep 2006 22:25:49 +0000 Subject: [PATCH] gcc 4 only: modified the previous change to allow fallback to local C++ system headers git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18866 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- configure | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 34a39a2b8d..6fa30e56bf 100755 --- a/configure +++ b/configure @@ -110,18 +110,21 @@ standard_gcc_settings() haikuSharedLibStdCxx=`$HAIKU_CC -print-file-name=libstdc++.so` haikuStaticLibSupCxx=`$HAIKU_CC -print-file-name=libsupc++.a` haikuSharedLibSupCxx=`$HAIKU_CC -print-file-name=libsupc++.so` - # only when building a cross compiler use the local (non haiku) C++ headers - if [ -n "$buildCrossTools" ]; then - local headers=$gccdir/../../../../include/c++/$haikuGCCVersion - haikuCxxHeadersDir=$headers - for d in $haikuGCCMachine backward ext; do - # Note: We need the line break, otherwise the line might become - # too long for jam (512 bytes max). - haikuCxxHeadersDir="$haikuCxxHeadersDir - $headers/$d" - done + local headers=$gccdir/../../../../include/c++/$haikuGCCVersion + haikuCxxHeadersDir=$headers + for d in $haikuGCCMachine backward ext; do + # Note: We need the line break, otherwise the line might become + # too long for jam (512 bytes max). + haikuCxxHeadersDir="$haikuCxxHeadersDir + $headers/$d" + done + + if [ "$buildCrossTools" = "" ]; then + # when not building the crosscompiler, we use cpp headers from + # tree first, but fallback to local C++ system headers (like ) + haikuCxxHeadersDir="headers/cpp $haikuCxxHeadersDir" fi - + if [ $haikuStaticLibStdCxx = libstdc++.a ]; then haikuStaticLibStdCxx= fi