diff options
author | Steven Knight <knight@baldmt.com> | 2003-05-27 12:14:50 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-05-27 12:14:50 (GMT) |
commit | eb18e3716f7c5de0d9bc1399d4e4f4e4c587388a (patch) | |
tree | 5f9535a11da29058da2460e1aebd97efff9c6bda /test/BuildDir.py | |
parent | dd46e3d77cb07573d2ff1cb0caed60e5f474cc3c (diff) | |
download | SCons-eb18e3716f7c5de0d9bc1399d4e4f4e4c587388a.zip SCons-eb18e3716f7c5de0d9bc1399d4e4f4e4c587388a.tar.gz SCons-eb18e3716f7c5de0d9bc1399d4e4f4e4c587388a.tar.bz2 |
Use -lfrtbegin when linking fortran in gcc3; Cygwin fixes. (Chad Austin)
Diffstat (limited to 'test/BuildDir.py')
-rw-r--r-- | test/BuildDir.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/test/BuildDir.py b/test/BuildDir.py index 9c37f2c..f38505e 100644 --- a/test/BuildDir.py +++ b/test/BuildDir.py @@ -30,10 +30,8 @@ import sys import time import TestSCons -if sys.platform == 'win32': - _exe = '.exe' -else: - _exe = '' +_exe = TestSCons._exe +fortran_runtime = TestSCons.fortran_lib test = TestSCons.TestSCons() @@ -92,14 +90,6 @@ SConscript('../build/var5/SConscript', "env") SConscript('../build/var6/SConscript', "env") """) -if string.find(sys.platform, 'irix') != -1: - fortran_runtime = 'ftn' - - # f77 does NOT work on cruncher - test.no_result() -else: - fortran_runtime = 'g2c' - test.subdir(['work1', 'src']) test.write(['work1', 'src', 'SConscript'], """ import os @@ -133,8 +123,8 @@ except: if f77 and env.Detect(env['F77']): env.Command(target='b2.f', source='b2.in', action=buildIt) - env.Copy(LIBS = [r'%s']).Program(target='bar2', source='b2.f') - env.Copy(LIBS = [r'%s']).Program(target='bar1', source='b1.f') + env.Copy(LIBS = %s).Program(target='bar2', source='b2.f') + env.Copy(LIBS = %s).Program(target='bar1', source='b1.f') """ % (fortran_runtime, fortran_runtime)) test.write(['work1', 'src', 'f1.c'], r""" |