summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/linux
diff options
context:
space:
mode:
authorknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2009-01-26 20:53:27 +0000
committerknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2009-01-26 20:53:27 +0000
commit98a38c56f5175544ee9a2c7140519cbf801edd42 (patch)
treed0f3b2db6290b652e8bf4a58962aa0eb528ae796 /lib/make/known-architectures/linux
parenta2ee2e0a394148954da51628deace3069c167204 (diff)
fix gcc version extraction for Debian Lenny
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4520 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/linux')
-rw-r--r--lib/make/known-architectures/linux4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux
index 297bba2d..22afecf9 100644
--- a/lib/make/known-architectures/linux
+++ b/lib/make/known-architectures/linux
@@ -363,7 +363,7 @@ else
gcc | cc)
: ${CFLAGS='-pipe -std=gnu99'}
: ${C_OPTIMISE_FLAGS='-O3'}
- CC_VERSION="`$CC -v 2>&1 | grep -i version | head -n1`"
+ CC_VERSION="`$CC -v 2>&1 | grep -i "gcc version" | head -n1`"
major_version=`echo $CC_VERSION | cut -f3 -d' ' | cut -f1 -d'.'`
minor_version=`echo $CC_VERSION | cut -f3 -d' ' | cut -f2 -d'.'`
# only GCC versions 4.1 and higher support OpenMP
@@ -419,7 +419,7 @@ else
gcc | [gc]++)
: ${CXXFLAGS='-pipe'}
: ${CXX_OPTIMISE_FLAGS='-O3'}
- CXX_VERSION="`$CXX -v 2>&1 | grep -i version | head -n1`"
+ CXX_VERSION="`$CXX -v 2>&1 | grep -i "gcc version" | head -n1`"
major_version=`echo $CXX_VERSION | cut -f3 -d' ' | cut -f1 -d'.'`
minor_version=`echo $CXX_VERSION | cut -f3 -d' ' | cut -f2 -d'.'`
# only GCC versions 4.1 and higher support OpenMP