From 7bc0718d3439297d002f9f8eccf4459e258b660f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Mon, 30 Nov 2015 23:23:46 +0100 Subject: [PATCH] Build: simpler version# parsing logic (parsing gcc --version failed on my system) --- build-support/factor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/factor.sh b/build-support/factor.sh index 00be3ce779..ee71c0444f 100755 --- a/build-support/factor.sh +++ b/build-support/factor.sh @@ -133,7 +133,7 @@ semver_into() { # issue 1440 gcc_version_ok() { - GCC_VERSION=`gcc --version | head -n1 | rev | cut -d ' ' -f 1 | rev` + GCC_VERSION=`gcc -dumpversion` local GCC_MAJOR local GCC_MINOR local GCC_PATCH local GCC_SPECIAL semver_into $GCC_VERSION GCC_MAJOR GCC_MINOR GCC_PATCH GCC_SPECIAL