Skip to content

Instantly share code, notes, and snippets.

@cmb69

cmb69/.patch

Created Aug 13, 2020
Embed
What would you like to do?
Patch for __builtin_cpu_init() detection (PHP-7.3)
acinclude.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 45e1af0e66..66a729dc50 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3262,8 +3262,8 @@ dnl PHP_CHECK_BUILTIN_CPU_INIT
AC_DEFUN([PHP_CHECK_BUILTIN_CPU_INIT], [
AC_MSG_CHECKING([for __builtin_cpu_init])
- AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
- return __builtin_cpu_init()? 1 : 0;
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
+ return __builtin_cpu_init()? 0 : 1;
]])], [
have_builtin_cpu_init=1
AC_MSG_RESULT([yes])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.