From 2697bb8d3ad2ba67abb049cbe599aadc99f1a069 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 28 Jun 2018 15:26:45 +0200 Subject: [PATCH] Fix bug #76392 On systems without glibc, such as Alpine with Musl libc, the function attributes are not supported. GCC 6 doesn't properly omit some systems. This is already fixed in GCC 7 but for systems with GCC 6 and ones without glibc, this additional check fixes this bug. --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fbfb4564e9ec5..c57b1691863c0 100644 --- a/configure.ac +++ b/configure.ac @@ -581,8 +581,12 @@ AC_TYPE_UID_T dnl Checks for sockaddr_storage and sockaddr.sa_len PHP_SOCKADDR_CHECKS -AX_GCC_FUNC_ATTRIBUTE([ifunc]) -AX_GCC_FUNC_ATTRIBUTE([target]) +dnl Checks for GCC function attributes on all systems except ones without glibc +dnl Fix for these systems is already included in GCC 7, but not on GCC 6 +AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*], [true], [ + AX_GCC_FUNC_ATTRIBUTE([ifunc]) + AX_GCC_FUNC_ATTRIBUTE([target]) +]) dnl Check for IPv6 support AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,