From e3c3c19859b250d11ef74749658a2f2458311707 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 16 Sep 2006 21:57:13 +0000 Subject: [PATCH] gcc 4 only: when not building the cross compiler, use haiku default C++ headers from source tree (haiku/headers/os/cpp), instead of local system headers git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18865 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- configure | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 36d334bf90..34a39a2b8d 100755 --- a/configure +++ b/configure @@ -110,14 +110,17 @@ 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` - 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 + # 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 + fi if [ $haikuStaticLibStdCxx = libstdc++.a ]; then haikuStaticLibStdCxx=