From: Nikita Popov Date: Wed, 2 Jan 2019 11:59:22 +0000 (+0100) Subject: Disable ifuncs on FreeBSD X-Git-Tag: php-7.3.2RC1~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=291589114aa9be899cf7d5d874c3b5bbdb35f336;p=php 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. --- diff --git a/configure.ac b/configure.ac index b63e01e685..660b43a343 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) ])