]> granicus.if.org Git - php/commitdiff
Disable ifuncs on FreeBSD
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 11:59:22 +0000 (12:59 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 11:59:22 +0000 (12:59 +0100)
Intended as at least a preliminary fix for bug #77284. If/when we
figure out what exactly the issue is, we can relax this.

configure.ac

index b63e01e6858e61f6a072678a85b469e868c8c177..660b43a343c6f44fbec4ac0c885e43af166bc3a6 100644 (file)
@@ -585,7 +585,10 @@ PHP_SOCKADDR_CHECKS
 
 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], [
+dnl
+dnl At least some versions of FreeBSD seem to have buggy ifunc support, see
+dnl bug #77284. Conservatively don't use ifuncs on FreeBSD.
+AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*], [true], [
   AX_GCC_FUNC_ATTRIBUTE([ifunc])
   AX_GCC_FUNC_ATTRIBUTE([target])
 ])