From aabc099a3611f680efb4c9b8066822dcb0c470cc Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 18 Nov 2023 15:07:06 +0100 Subject: [PATCH] Add host_cpu type for FreeBSD In FreeBSD world x86_64 host type is identified as amd64 so add proper checks for FreeBSD amd64 hosts. (cherry picked from commit 778072ab4fcb34d7b620396621b07a80386c3467) --- ext/opcache/config.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 2a83fa245597..0b923206282c 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -29,7 +29,7 @@ if test "$PHP_OPCACHE" != "no"; then if test "$PHP_OPCACHE_JIT" = "yes"; then case $host_cpu in - i[[34567]]86*|x86*|aarch64) + i[[34567]]86*|x86*|aarch64|amd64) ;; *) AC_MSG_WARN([JIT not supported by host architecture]) @@ -48,7 +48,8 @@ if test "$PHP_OPCACHE" != "no"; then DASM_FLAGS="-D X64APPLE=1 -D X64=1" DASM_ARCH="x86" ;; - x86_64*) + *x86_64*|amd64-*-freebsd*) + IR_TARGET=IR_TARGET_X64 DASM_FLAGS="-D X64=1" DASM_ARCH="x86" ;;