-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php: use qemu wrapper to build minilua
minilua, by default, is compiled by the host machine as a dependency for compiling the JIT/opcache extension. To successfully cross-compile, this needs to be run under QEMU to match the target architecture. According to the [RFC](https://wiki.php.net/rfc/jit), only x86 and x86_64 targets are supported. Signed-off-by: Ashley Cox <[email protected]> Signed-off-by: Claude Bing <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
meta-oe/recipes-devtools/php/php/0011-use-qemuwrapper-for-minilua.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/ext/opcache/jit/Makefile.frag 2021-10-19 06:34:32.000000000 -0400 | ||
+++ b/ext/opcache/jit/Makefile.frag 2021-11-15 15:10:41.437289836 -0500 | ||
@@ -3,7 +3,7 @@ $(builddir)/minilua: $(srcdir)/jit/dynas | ||
$(CC) $(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 | ||
+ $(top_srcdir)/qemuwrapper $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc | ||
|
||
$(builddir)/jit/zend_jit.lo: \ | ||
$(builddir)/jit/zend_jit_x86.c \ |
20 changes: 0 additions & 20 deletions
20
meta-oe/recipes-devtools/php/php/1010-Fix-opcache-jit-minilua-compiling.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters