aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-11 12:14:23 -0600
committerJack Nagel2013-11-11 12:15:57 -0600
commite22ad69f000369a3cffa773481132d9659635e3b (patch)
tree6a14f4d778397f353ab0eb702bf50c67554788d8 /Library
parent6af4ab44c6259962d3e583ad9b637961d51e512a (diff)
downloadbrew-e22ad69f000369a3cffa773481132d9659635e3b.tar.bz2
Only pass cflags during configure and make
Fixes Homebrew/homebrew#24172.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 5baba3de5..1c1f3adce 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -163,6 +163,8 @@ class Cmd
def cflags
args = []
+ return args unless cccfg? 'O' or configure?
+
args << '-pipe'
args << '-w' unless configure?
args << '-Os'