aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-11 12:14:23 -0600
committerJack Nagel2013-11-11 12:15:57 -0600
commit96efd9d7e5794c5ef059c59473ff03bfc94d88bf (patch)
tree65dd61a8d1c8f34ed1ab3349ea8f190d81c53e79
parentb1dab5111d25f3c15a01652cd5e2b5d10b0e14c1 (diff)
downloadhomebrew-96efd9d7e5794c5ef059c59473ff03bfc94d88bf.tar.bz2
Only pass cflags during configure and make
Fixes #24172.
-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'