Get Fortran flags from envvars.

This commit is contained in:
Jussi Pakkanen 2014-08-01 16:29:24 +03:00
parent a77551f3d7
commit bfacc7ef8c
1 changed files with 3 additions and 0 deletions

View File

@ -1864,6 +1864,9 @@ def get_args_from_envvars(lang):
compile_args = os.environ.get('CXXFLAGS', '').split()
link_args = compile_args + os.environ.get('LDFLAGS', '').split()
compile_args += os.environ.get('CPPFLAGS', '').split()
elif lang == 'fortran':
compile_args = os.environ.get('FFLAGS', '').split()
link_args = compile_args + os.environ.get('LDFLAGS', '').split()
else:
compile_args = []
link_args = []