From 0fa731b0209abb8378f2680b03a73af993eaa26f Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Fri, 15 Jan 2016 22:58:50 -0400 Subject: [PATCH] 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. --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index c1adc56992..659599544b 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.*/