summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-26 23:29:58 (GMT)
committerGitHub <noreply@github.com>2017-08-26 23:29:58 (GMT)
commitf627e740ffd38a02ccb43848d875a4d36cf91d9c (patch)
tree89278e74a7b37674bb2b340f6cc040d3c288659b /scripts/build/cc/gcc.sh
parent5494335c03d096b33e6d82aa2aaad2c51b5c3a37 (diff)
parenteba1a826862d875e6163315029839fd3de192c8b (diff)
Merge pull request #814 from stilor/issue-802
Issue 802
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 8fd39b7..54dd514 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -458,8 +458,10 @@ do_gcc_core_backend() {
# Pass-2 should be able to get it from the headers, but for some options
# (such as --with-long-double-128) we need to get it right even in pass-1.
# GCC expects just two numbers separated by a dot.
- local glibc_version=`CT_GetPkgVersion GLIBC | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'`
+ local glibc_version
+ CT_GetPkgVersion GLIBC glibc_version
+ glibc_version=`echo "${glibc_version}" | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'`
extra_config+=("--with-glibc-version=${glibc_version}")
fi