diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-25 08:42:19 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-08-26 13:01:37 -0700 |
commit | 5324905c1446d898d9a8f578555c1e54a2fbc89c (patch) | |
tree | 28df75e6babbdeb07b202f76eb8d1e6f9308a72a /scripts/build/cc | |
parent | 961ea1938204e4fc9199c2ff5933caaa1e3d0710 (diff) | |
download | crosstool-ng-5324905c1446d898d9a8f578555c1e54a2fbc89c.tar.gz crosstool-ng-5324905c1446d898d9a8f578555c1e54a2fbc89c.tar.bz2 crosstool-ng-5324905c1446d898d9a8f578555c1e54a2fbc89c.zip |
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.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 8fd39b77..54dd514c 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 |