summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-19 09:44:59 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-19 14:08:12 -0400
commit95f0c784ba5816f4b2f8e6a4dac8711d55792072 (patch)
tree16e577b6342c7eafe51ee220a4fc6e44edff9fa1 /cflags.SH
parent8161153450000b2b806ca000eae18af7e430d3d9 (diff)
downloadperl-95f0c784ba5816f4b2f8e6a4dac8711d55792072.tar.gz
The g++ flags removal was not right.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH8
1 files changed, 5 insertions, 3 deletions
diff --git a/cflags.SH b/cflags.SH
index e2bf4b9859..aa730c6dd0 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -267,10 +267,12 @@ case "$cc" in
-Werror=declaration-after-statement \
-std=c89
do
- case "$ccflags" in
+ case "$ccflags$warn" in
*"$f"*)
- echo "cflags.SH: Removing $ccflags because of g++."
- ccflags=`echo $ccflags|sed 's/$f/ /'` ;;
+ echo "cflags.SH: Removing $f because of g++."
+ ccflags=`echo $ccflags|sed 's/$f/ /'`
+ warn=`echo $warn|sed 's/$f/ /'`
+ ;;
esac
done
;;