Only pass cflags during configure and make

Fixes Homebrew/homebrew#24172.
This commit is contained in:
Jack Nagel 2013-11-11 12:14:23 -06:00
parent 6af4ab44c6
commit e22ad69f00

View File

@ -163,6 +163,8 @@ class Cmd
def cflags
args = []
return args unless cccfg? 'O' or configure?
args << '-pipe'
args << '-w' unless configure?
args << '-Os'