From 5324905c1446d898d9a8f578555c1e54a2fbc89c Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 25 Aug 2017 08:42:19 -0700 Subject: 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 --- scripts/build/cc/gcc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build/cc') 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 -- cgit v1.2.3