diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
commit | a925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch) | |
tree | 292853eb221ebe82c9e9b47c03c74b78a155add0 /test/SHF77FLAGS.py | |
parent | dbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff) | |
download | SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2 |
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/SHF77FLAGS.py')
-rw-r--r-- | test/SHF77FLAGS.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/SHF77FLAGS.py b/test/SHF77FLAGS.py index 3ea6577..444f106 100644 --- a/test/SHF77FLAGS.py +++ b/test/SHF77FLAGS.py @@ -34,7 +34,10 @@ python = TestSCons.python if sys.platform == 'win32': _obj = '.obj' else: - _obj = '.os' + if string.find(sys.platform, 'irix') > -1: + _obj = '.o' + else: + _obj = '.os' test = TestSCons.TestSCons() @@ -111,6 +114,7 @@ test.fail_test(test.read('test6' + _obj) != " -x -c\nThis is a .FPP file.\n") g77 = test.where_is('g77') +FTN_LIB = TestSCons.fortran_lib if g77: @@ -123,12 +127,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') shf77 = foo.Dictionary('SHF77') bar = foo.Copy(SHF77 = r'%s wrapper.py ' + shf77, SHF77FLAGS = '-Ix') foo.SharedLibrary(target = 'foo/foo', source = 'foo.f') bar.SharedLibrary(target = 'bar/bar', source = 'bar.f') -""" % python) +""" % (FTN_LIB, python)) test.write('foo.f', r""" PROGRAM FOO |