add the FCFLAGS from the os environ

This commit is contained in:
Thomas Nagy 2012-05-09 00:35:24 +02:00
parent b188419d09
commit 49ce7a489e
4 changed files with 11 additions and 0 deletions

View File

@ -46,6 +46,13 @@ def fc_flags(conf):
v['SONAME_ST'] = '-Wl,-h,%s'
@conf
def fc_add_flags(conf):
"""
FCFLAGS?
"""
conf.add_os_flags('FCFLAGS')
conf.add_os_flags('LDFLAGS', 'LINKFLAGS')
@conf
def check_fortran(self, *k, **kw):

View File

@ -61,5 +61,7 @@ def configure(conf):
conf.find_g95()
conf.find_ar()
conf.fc_flags()
conf.fc_add_flags()
conf.g95_flags()
conf.g95_modifier_platform()

View File

@ -86,5 +86,6 @@ def configure(conf):
conf.find_gfortran()
conf.find_ar()
conf.fc_flags()
conf.fc_add_flags()
conf.gfortran_flags()
conf.gfortran_modifier_platform()

View File

@ -55,5 +55,6 @@ def configure(conf):
conf.find_program('xiar', var='AR')
conf.env.ARFLAGS = 'rcs'
conf.fc_flags()
conf.fc_add_flags()
conf.ifort_modifier_platform()