Merge pull request #14658 from mhei/php8-fix-x86_64-build
php8: fix cross-compiling for x86_64
This commit is contained in:
commit
43140d77ee
2 changed files with 28 additions and 0 deletions
|
@ -466,6 +466,9 @@ CONFIGURE_VARS+= \
|
||||||
ac_cv_u8t_decompose=yes \
|
ac_cv_u8t_decompose=yes \
|
||||||
ac_cv_have_pcre2_jit=no
|
ac_cv_have_pcre2_jit=no
|
||||||
|
|
||||||
|
MAKE_VARS+= \
|
||||||
|
HOSTCC="$(HOSTCC)"
|
||||||
|
|
||||||
define Package/php8/conffiles
|
define Package/php8/conffiles
|
||||||
/etc/php.ini
|
/etc/php.ini
|
||||||
/etc/php8/
|
/etc/php8/
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
From 73ea1d44c1e6b063bfa02e12919ec8a9de3709d8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Heimpold <mhei@heimpold.de>
|
||||||
|
Date: Wed, 3 Feb 2021 22:51:34 +0100
|
||||||
|
Subject: [PATCH] Fix opcache jit minilua compiling
|
||||||
|
|
||||||
|
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
|
||||||
|
---
|
||||||
|
ext/opcache/jit/Makefile.frag | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/ext/opcache/jit/Makefile.frag b/ext/opcache/jit/Makefile.frag
|
||||||
|
index d4f97de..7421897 100644
|
||||||
|
--- a/ext/opcache/jit/Makefile.frag
|
||||||
|
+++ b/ext/opcache/jit/Makefile.frag
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
$(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c
|
||||||
|
- $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@
|
||||||
|
+ $(HOSTCC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@
|
||||||
|
|
||||||
|
$(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
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
Loading…
Reference in a new issue