aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMisty De Meo2016-01-15 22:58:50 -0400
committerMisty De Meo2016-01-15 22:58:50 -0400
commit0fa731b0209abb8378f2680b03a73af993eaa26f (patch)
tree1d6f270d9f9817898809042161309e2821008269 /Library/ENV
parent4a8632e54d02b8c71ab581f18287a682e1640bcc (diff)
downloadbrew-0fa731b0209abb8378f2680b03a73af993eaa26f.tar.bz2
superenv: properly filter gcc-4.2 flags
These weren't being filtered correctly if the compiler was being called as g++ instead of gcc. Fixes mistydemeo/tigerbrew#371.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index c1adc5699..659599544 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -151,7 +151,7 @@ class Cmd
args << arg unless tool =~ /^clang/
when "-Wno-deprecated-register"
# older gccs don't support these flags
- args << arg unless tool =~ /^gcc-4.[02]/
+ args << arg unless tool =~ /^g..-4.[02]/
when /^-W[alp],/, /^-Wno-/
args << arg
when /^-W.*/