summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-25 15:42:19 (GMT)
committerAlexey Neyman <stilor@att.net>2017-08-26 20:01:37 (GMT)
commit5324905c1446d898d9a8f578555c1e54a2fbc89c (patch)
tree28df75e6babbdeb07b202f76eb8d1e6f9308a72a /scripts/build/cc
parent961ea1938204e4fc9199c2ff5933caaa1e3d0710 (diff)
Fix glibc-ports with the new framework
While here, also consider patched by anything other than "bundled patches" as per-target sources. Add scary warnings in case of a failure. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/cc')
-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