Skip to content

Commit c4313f0

Browse files
committed
Fix bug #76392
On systems such as Alpine, Musl libc doesn't provide function attributes. Compiler (GCC) provides them, but the runtime afterwards doesn't. This additional check fixes this bug.
1 parent 95a71ca commit c4313f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,12 @@ AC_TYPE_UID_T
581581
dnl Checks for sockaddr_storage and sockaddr.sa_len
582582
PHP_SOCKADDR_CHECKS
583583

584-
AX_GCC_FUNC_ATTRIBUTE([ifunc])
585-
AX_GCC_FUNC_ATTRIBUTE([target])
584+
dnl Checks for function attributes on all systems except ones with musl libc
585+
dnl Some systems don't have glibc with function attributes, such as Alpine
586+
AS_CASE([$host_alias], [*musl], [true], [
587+
AX_GCC_FUNC_ATTRIBUTE([ifunc])
588+
AX_GCC_FUNC_ATTRIBUTE([target])
589+
])
586590

587591
dnl Check for IPv6 support
588592
AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,

0 commit comments

Comments
 (0)