Skip to content

Commit 2915891

Browse files
committed
Disable ifuncs on FreeBSD
Intended as at least a preliminary fix for bug #77284. If/when we figure out what exactly the issue is, we can relax this.
1 parent 6136835 commit 2915891

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,10 @@ PHP_SOCKADDR_CHECKS
585585

586586
dnl Checks for GCC function attributes on all systems except ones without glibc
587587
dnl Fix for these systems is already included in GCC 7, but not on GCC 6
588-
AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*], [true], [
588+
dnl
589+
dnl At least some versions of FreeBSD seem to have buggy ifunc support, see
590+
dnl bug #77284. Conservatively don't use ifuncs on FreeBSD.
591+
AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*], [true], [
589592
AX_GCC_FUNC_ATTRIBUTE([ifunc])
590593
AX_GCC_FUNC_ATTRIBUTE([target])
591594
])

0 commit comments

Comments
 (0)