summaryrefslogtreecommitdiffstats
path: root/config/dec-flags
diff options
context:
space:
mode:
Diffstat (limited to 'config/dec-flags')
-rw-r--r--config/dec-flags28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/dec-flags b/config/dec-flags
index 291cc93..70efaa9 100644
--- a/config/dec-flags
+++ b/config/dec-flags
@@ -122,3 +122,31 @@ fi
# The default C++ compiler
+if test -z "$CXX"; then
+ CXX=cxx
+ CXX_BASENAME=cxx
+fi
+
+
+case $CXX_BASENAME in
+ g++)
+ CXXFLAGS="$CXXFLAGS -Wsign-compare" #Only works for some versions
+ DEBUG_CXXFLAGS="-g -fverbose-asm"
+ DEBUG_CPPFLAGS=
+ PROD_CXXFLAGS="-O3 -fomit-frame-pointer"
+ PROD_CPPFLAGS=
+ PROFILE_CXXFLAGS="-pg"
+ PROFILE_CPPFLAGS=
+ ;;
+
+ *)
+ CXXFLAGS="$CXXFLAGS -tlocal"
+ DEBUG_CXXFLAGS="-g"
+ DEBUG_CPPFLAGS=
+ PROD_CXXFLAGS="-O"
+ PROD_CPPFLAGS=
+ PROFILE_CXXFLAGS="-pg"
+ PROFILE_CPPFLAGS=
+ ;;
+esac
+