summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH4
1 files changed, 4 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index 41e004007a..cc369d9ccd 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -224,6 +224,10 @@ for file do
*) ;;
esac
+case "$cc" in
+*g++*) ccflags="`echo $ccflags|sed 's/-Wdeclaration-after-statement/ /'`" ;;
+esac
+
if test -f .patch; then
ccflags="-DPERL_PATCHNUM=`cat .patch` $ccflags"
fi