Created
August 13, 2020 10:51
-
-
Save cmb69/3fd0106ce78446c9e10e54eec21a4d82 to your computer and use it in GitHub Desktop.
Patch for __builtin_cpu_init() detection (PHP-7.3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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