summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2008-09-20 05:41:43 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2008-09-20 05:41:43 (GMT)
commita366f132c9dd57989997a0cfa980e037a2720628 (patch)
tree2bdfd26c71842a701bebedaa3873b983334d0836 /QMTest
parent7211e746b5d9aade28115733867631d476eddffe (diff)
downloadSCons-a366f132c9dd57989997a0cfa980e037a2720628.zip
SCons-a366f132c9dd57989997a0cfa980e037a2720628.tar.gz
SCons-a366f132c9dd57989997a0cfa980e037a2720628.tar.bz2
Fix test/VariantDir/VariantDir.py on centos5, currently failing as TestSCons.py specifies incorrect fortran library to link against for gcc's newer then 4.0 (aka 4.1.2 which ships with python)
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index c7332fa..0cf94b6 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -110,6 +110,9 @@ def gccFortranLibs():
for l in stderr.readlines():
list = string.split(l)
if len(list) > 3 and list[:2] == ['gcc', 'version']:
+ if list[2][:3] in ('4.1','4.2','4.3'):
+ libs = ['gfortranbegin']
+ break
if list[2][:2] in ('3.', '4.'):
libs = ['frtbegin'] + libs
break