Index: www/php80-opcache/files/patch-config.m4 =================================================================== --- /dev/null +++ www/php80-opcache/files/patch-config.m4 @@ -0,0 +1,20 @@ +--- 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 Index: www/php80-opcache/files/patch-jit_Makefile.frag =================================================================== --- /dev/null +++ www/php80-opcache/files/patch-jit_Makefile.frag @@ -0,0 +1,11 @@ +--- jit/Makefile.frag.orig 2020-11-24 17:04:03 UTC ++++ jit/Makefile.frag +@@ -5,7 +5,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c + $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua + $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc + +-$(builddir)/jit/zend_jit.lo: \ ++jit/zend_jit.lo: \ + $(builddir)/jit/zend_jit_x86.c \ + $(srcdir)/jit/zend_jit_helpers.c \ + $(srcdir)/jit/zend_jit_disasm_x86.c \