Files
ports/www/php80-opcache/files/patch-config.m4
T
Oleksii Samorukov 3ca693dcbe Fix JIT support in the PHP8 build
Approved by:		tz
Differential Revision:	https://reviews.freebsd.org/D28042
2021-01-09 00:01:49 +00:00

21 lines
557 B
Plaintext

--- config.m4.orig 2020-11-24 17:04:03 UTC
+++ config.m4
@@ -29,7 +29,7 @@ if test "$PHP_OPCACHE" != "no"; then
if test "$PHP_OPCACHE_JIT" = "yes"; then
case $host_cpu in
- x86*)
+ x86*|amd64|i386)
;;
*)
AC_MSG_WARN([JIT not supported by host architecture])
@@ -60,7 +60,7 @@ if test "$PHP_OPCACHE" != "no"; then
*x86_64-*-darwin*)
DASM_FLAGS="-D X64APPLE=1 -D X64=1"
;;
- *x86_64*)
+ *x86_64*|amd64-*-freebsd*)
DASM_FLAGS="-D X64=1"
;;
esac