- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
Testingenabling ifunc support on FreeBSD, alongside having to remove the hardcoded check that disables it I also run into:
checking for __builtin_cpu_init... no
Line 2735 inf6fae19
return __builtin_cpu_init()? 1 : 0; |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[[ return __builtin_cpu_init()? 1 : 0;]])],[
While this does technically appear to returnint
on gcc, it's documented asvoid __builtin_cpu_init (void)
, and indeed returns such on clang. Changing this to:
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[[ __builtin_cpu_init(); return 1;]])],[
Results in a successful check and much faster addslashes, base64_encode, etc.
PHP Version
PHP 8.1.23
Operating System
FreeBSD 13.2-RELEASE