diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-18 17:06:37 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-18 17:06:37 +0000 |
commit | 8802ea31716703ee9bb1752876a782649405edff (patch) | |
tree | bf9feafaeb19f0c0427ad26130c15661c7b10b3d /lib/make/configure | |
parent | 75f997988ed64a8f8e5a24482642eeb556a2e853 (diff) |
Use C_WARN_FLAGS to build CXX_WARN_FLAGS only if CC is gcc.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2237 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/configure')
-rwxr-xr-x | lib/make/configure | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/make/configure b/lib/make/configure index 0c0fb256..2faaf549 100755 --- a/lib/make/configure +++ b/lib/make/configure @@ -4592,7 +4592,11 @@ fi if test -z "$CXX_WARN_FLAGS" ; then case "$CXX" in c++ | g++) - CXX_WARN_FLAGS="\$(C_WARN_FLAGS) -Woverloaded-virtual" + if test "$CC" = "gcc"; then + CXX_WARN_FLAGS="\$(C_WARN_FLAGS) -Woverloaded-virtual" + else + CXX_WARN_FLAGS="-Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winline -Woverloaded-virtual" + fi ;; *) # Not sure what should be a reasonable default. |