diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-19 09:44:59 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-19 14:08:12 -0400 |
commit | 95f0c784ba5816f4b2f8e6a4dac8711d55792072 (patch) | |
tree | 16e577b6342c7eafe51ee220a4fc6e44edff9fa1 /cflags.SH | |
parent | 8161153450000b2b806ca000eae18af7e430d3d9 (diff) | |
download | perl-95f0c784ba5816f4b2f8e6a4dac8711d55792072.tar.gz |
The g++ flags removal was not right.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 ;; |