Add Fortran ENV helpers

This commit is contained in:
Adam Vandenberg 2013-06-23 20:33:09 -07:00
parent 41352cf1a8
commit aafe2f20d0

View File

@ -423,12 +423,16 @@ class << ENV
delete(key) if self[key].to_s.empty?
end if value
end
def cc; self['CC'] or "cc"; end
def cxx; self['CXX'] or "c++"; end
def cflags; self['CFLAGS']; end
def cxxflags;self['CXXFLAGS']; end
def cppflags;self['CPPFLAGS']; end
def ldflags; self['LDFLAGS']; end
def cc; self['CC'] or "cc"; end
def cxx; self['CXX'] or "c++"; end
def cflags; self['CFLAGS']; end
def cxxflags; self['CXXFLAGS']; end
def cppflags; self['CPPFLAGS']; end
def ldflags; self['LDFLAGS']; end
def fc; self['FC']; end
def fflags; self['FFLAGS']; end
def fcflags; self['FCFLAGS']; end
# Snow Leopard defines an NCURSES value the opposite of most distros
# See: http://bugs.python.org/issue6848