From 387c8d8e2c89d94d41c76479ee9571c60e824ac3 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 12 May 2018 13:00:41 -0700 Subject: First batch of fixes - Incompatible function type for ifunc alias - Multiple statements macro expansion in strftime - if_nametoindex size checking Signed-off-by: Alexey Neyman --- scripts/build/libc/glibc.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/build/libc') diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 3b4b6268..4b1c6881 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -200,6 +200,13 @@ do_libc_backend_once() { glibc_cflags+=" ${CT_GLIBC_EXTRA_CFLAGS}" glibc_cflags+=" ${multi_flags}" + # Before 2.25, glibc didn't use GCC's ifunc attribute, instead creating + # the resolvers through some clever assembly. This had the resolver function + # aliased with an incompatible type, and GCC8 now complains about it. + if [ "${CT_GLIBC_HAS_NEW_IFUNC}" != "y" ]; then + glibc_cflags+=" -Wno-error=attribute-alias" + fi + # Analyze the resulting options for any extra configure switches to throw in. for opt in ${glibc_cflags}; do case ${opt} in -- cgit v1.2.3