diff options
author | Alexey Neyman <stilor@att.net> | 2018-05-12 13:00:41 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-05-12 13:03:29 -0700 |
commit | 387c8d8e2c89d94d41c76479ee9571c60e824ac3 (patch) | |
tree | 55446e0fad0d390157ab44d8ec5e8007c7f439bc /scripts | |
parent | 7d3d4d9e7484b8e48336f7ba4b934661b1562fb8 (diff) | |
download | crosstool-ng-387c8d8e2c89d94d41c76479ee9571c60e824ac3.tar.gz crosstool-ng-387c8d8e2c89d94d41c76479ee9571c60e824ac3.tar.bz2 crosstool-ng-387c8d8e2c89d94d41c76479ee9571c60e824ac3.zip |
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 <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/libc/glibc.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |