diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-22 23:48:45 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-08-22 23:48:45 (GMT) |
commit | 20e0f706c60898a283374bbd15096b7bd6b1fbc5 (patch) | |
tree | 9252d1f31d2c046cbfb18d152ac675c52b00e8e5 /scripts/build/cc/gcc.sh | |
parent | 5fc2ca7e8db5a3a38ad6cc8c8ce13505fef602a4 (diff) |
Fix PPC64LE by supplying --with-glibc-version
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r-- | scripts/build/cc/gcc.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index d4c1b43..8fd39b7 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -453,6 +453,16 @@ do_gcc_core_backend() { extra_config+=("--disable-libstdcxx-pch") fi + if [ "${CT_LIBC_GLIBC}" = "y" ]; then + # Report GLIBC's version to GCC, it affects the defaults on other options. + # 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/'` + + extra_config+=("--with-glibc-version=${glibc_version}") + fi + case "${CT_CC_GCC_LDBL_128}" in y) extra_config+=("--with-long-double-128");; m) ;; |