From 18e4a32abfa0743f207cad47f3a9d9703bc25f17 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Sat, 20 Sep 2008 05:41:43 +0000 Subject: [PATCH] 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 --- QMTest/TestSCons.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2