From: bdbaddog Date: Sat, 20 Sep 2008 05:41:43 +0000 (+0000) Subject: Fix test/VariantDir/VariantDir.py on centos5, currently failing as TestSCons.py speci... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18e4a32abfa0743f207cad47f3a9d9703bc25f17;p=scons.git 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) git-svn-id: http://scons.tigris.org/svn/scons/trunk@3442 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index c7332fac..0cf94b6b 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