Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2021 00:01:50 +0000 (UTC)
From:      Oleksii Samorukov <samm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r560820 - head/www/php80-opcache/files
Message-ID:  <202101090001.10901oIp020140@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: samm
Date: Sat Jan  9 00:01:49 2021
New Revision: 560820
URL: https://svnweb.freebsd.org/changeset/ports/560820

Log:
  Fix JIT support in the PHP8 build
  
  Approved by:		tz
  Differential Revision:	https://reviews.freebsd.org/D28042

Added:
  head/www/php80-opcache/files/
  head/www/php80-opcache/files/patch-config.m4   (contents, props changed)
  head/www/php80-opcache/files/patch-jit_Makefile.frag   (contents, props changed)

Added: head/www/php80-opcache/files/patch-config.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/php80-opcache/files/patch-config.m4	Sat Jan  9 00:01:49 2021	(r560820)
@@ -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

Added: head/www/php80-opcache/files/patch-jit_Makefile.frag
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/php80-opcache/files/patch-jit_Makefile.frag	Sat Jan  9 00:01:49 2021	(r560820)
@@ -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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101090001.10901oIp020140>