Commits

Harald Klimach committed a5b57e2

Use a dedicated set of LINKFLAGS for Fortran applications.

  • Participants
  • Parent commits 8c3bfed

Comments (0)

Files changed (1)

     # Flags for the default (production) variant
     conf.env['FCFLAGS'] = ( fcopts[conf.env.FC_NAME, 'optimize']
                           + fcopts[conf.env.FC_NAME, 'warn'] )
-    conf.env['LINKFLAGS'] = conf.env['FCFLAGS']
+    conf.env['LINKFLAGS_FORTRAN'] = conf.env['FCFLAGS']
 
     # Set flags for the debugging variant
     # DEBUG Variant
                           + fcopts[conf.env.FC_NAME, 'warn']
                           + fcopts[conf.env.FC_NAME, 'w2e']
                           + fcopts[conf.env.FC_NAME, 'debug'] )
-    conf.env['LINKFLAGS'] = conf.env['FCFLAGS']
+    conf.env['LINKFLAGS_FORTRAN'] = conf.env['FCFLAGS']
 
 def subconf(conf):
     """
     bld(
         features = 'fc fcprogram',
         source = ['sample/aotus_sample.f90'],
-        use = 'aotus',
+        use = ['aotus', 'FORTRAN'],
         target = 'aotus_sample')
 
     bld(
         features = 'fc fcprogram',
         source = ['LuaFortran/examples/test.f90'],
-        use = 'flu',
+        use = ['flu', 'FORTRAN'],
         target = 'flu_sample')
 
     from waflib.extras import utest_results
     utest_results.utests(bld, 'aotus')
     if bld.env['quad_support']:
-        utest_results.utests(bld, use = 'aotus', path = 'utests/quadruple')
+        utest_results.utests(bld, use = ['aotus', 'FORTRAN'], path = 'utests/quadruple')
     bld.add_post_fun(utest_results.summary)
 
     if bld.cmd == 'doxy':