diff options
Diffstat (limited to 'test/F77FLAGS.py')
-rw-r--r-- | test/F77FLAGS.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/F77FLAGS.py b/test/F77FLAGS.py index 256ab7e..b914701 100644 --- a/test/F77FLAGS.py +++ b/test/F77FLAGS.py @@ -95,6 +95,7 @@ sys.exit(0) test.write('SConstruct', """ env = Environment(LINK = r'%s mylink.py', + LINKFLAGS = [], F77 = r'%s myg77.py', F77FLAGS = '-x') env.Program(target = 'test1', source = 'test1.f') env.Program(target = 'test2', source = 'test2.for') @@ -151,6 +152,7 @@ test.fail_test(test.read('test6' + _exe) != " -x -c\nThis is a .FPP file.\n") g77 = test.where_is('g77') +FTN_LIB = TestSCons.fortran_lib if g77: @@ -163,12 +165,12 @@ os.system(string.join(sys.argv[1:], " ")) """ % string.replace(test.workpath('wrapper.out'), '\\', '\\\\')) test.write('SConstruct', """ -foo = Environment(LIBS = 'g2c') +foo = Environment(LIBS = r'%s') f77 = foo.Dictionary('F77') bar = foo.Copy(F77 = r'%s wrapper.py ' + f77, F77FLAGS = '-Ix') foo.Program(target = 'foo', source = 'foo.f') bar.Program(target = 'bar', source = 'bar.f') -""" % python) +""" % (FTN_LIB, python)) test.write('foo.f', r""" PROGRAM FOO |