Commits

Harald Klimach committed 45b3dfd

Use a more elegant solution for fcprogram specific linkflags

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_FORTRAN'] = conf.env['FCFLAGS']
+    conf.env['LINKFLAGS_fcprogram'] = 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_FORTRAN'] = conf.env['FCFLAGS']
+    conf.env['LINKFLAGS_fcprogram'] = conf.env['FCFLAGS']
 
 def subconf(conf):
     """
     bld(
         features = 'fc fcprogram',
         source = ['sample/aotus_sample.f90'],
-        use = ['aotus', 'FORTRAN'],
+        use = 'aotus',
         target = 'aotus_sample')
 
     bld(
         features = 'fc fcprogram',
         source = ['LuaFortran/examples/test.f90'],
-        use = ['flu', 'FORTRAN'],
+        use = 'flu',
         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', 'FORTRAN'], path = 'utests/quadruple')
+        utest_results.utests(bld, use = 'aotus', path = 'utests/quadruple')
     bld.add_post_fun(utest_results.summary)
 
     if bld.cmd == 'doxy':
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.