From e5027286413223f0d48d0d2e7ae6b360bb861f3d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 31 Oct 2012 06:50:50 -0700 Subject: [PATCH] Superenv: be more specific about -O flags Closes Homebrew/homebrew#15775. --- 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 fa620cc09a..cdf69e5f3d 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -103,7 +103,7 @@ class Cmd whittler.next when /^-g\d?/, /^-gstabs\d+/, '-gstabs+', /^-ggdb\d?/, '-gdwarf-2', /^-march=.+/, /^-mtune=.+/, '-m64', '-m32', - /^-O[0-9zs]?/, '-fast', + /^-O[0-9zs]?$/, '-fast', '-pedantic', '-pedantic-errors' when '-fopenmp', '-lgomp' # clang doesn't support OpenMP