diff options
Diffstat (limited to 'config/ia64-linux-gnu')
-rw-r--r-- | config/ia64-linux-gnu | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/config/ia64-linux-gnu b/config/ia64-linux-gnu index 85ad2b7..c93c218 100644 --- a/config/ia64-linux-gnu +++ b/config/ia64-linux-gnu @@ -20,7 +20,7 @@ fi # So it is removed. case $CC_BASENAME in - ecc) + ecc|icc) # Default to C99 standard. CFLAGS="${CFLAGS:--std=c99}" DEBUG_CFLAGS="-w2 -Wall -g -O0" @@ -100,15 +100,30 @@ if test "X$f9x_flags_set" = "X"; then f9x_flags_set=yes fi - # The Default settings for C++ if test -z "$CXX"; then CXX=ecc CXX_BASENAME=ecc fi +# A patch to make g++ getting the default settings. +# CXX_BASENAME should have been set in configure. +if test $CXX = g++; then + CXX_BASENAME=g++ +if + case $CXX_BASENAME in + ecc|icc) # Intel compilers + # Default to C99 standard. + CXXFLAGS="${CXXFLAGS:--std=c99}" + DEBUG_CXXFLAGS="-g -w2 -Wall" + DEBUG_CPPFLAGS= + PROD_CXXFLAGS="" #Default optimization O2 is used + PROD_CPPFLAGS= + PROFILE_CXXFLAGS="-pg" + PROFILE_CPPFLAGS= + ;; g++) CXXFLAGS="$CXXFLAGS -Wsign-compare" #Only works for some versions DEBUG_CXXFLAGS="-g -fverbose-asm" @@ -122,9 +137,9 @@ case $CXX_BASENAME in *) # Default to C99 standard. CXXFLAGS="${CXXFLAGS:--std=c99}" - DEBUG_CXXFLAGS="-g -w2 -Wall" + DEBUG_CXXFLAGS="-g" DEBUG_CPPFLAGS= - PROD_CXXFLAGS="" #Default optimization O2 is used + PROD_CXXFLAGS="-O" PROD_CPPFLAGS= PROFILE_CXXFLAGS="-pg" PROFILE_CPPFLAGS= |