ENV.rb - style tweak

This commit is contained in:
Adam Vandenberg 2010-09-07 10:09:22 -07:00
parent 339abc769d
commit e1af735d77

View File

@ -175,13 +175,11 @@ module HomebrewEnvExtension
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
end
# returns the compiler we're using
# Shortcuts for reading common flags
def cc; self['CC'] or "gcc"; end
def cxx; self['CXX'] or "g++"; end
# CFLAGS are read quite a bit
def cflags; ENV['CFLAGS']; end
def ldflags; ENV['LDFLAGS']; end
def cflags; self['CFLAGS']; end
def ldflags; self['LDFLAGS']; end
def m64
append_to_cflags '-m64'