php8: fix cross-compiling for x86_64 14658/head
authorMichael Heimpold <mhei@heimpold.de>
Thu, 4 Feb 2021 22:17:17 +0000 (23:17 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Thu, 4 Feb 2021 22:47:52 +0000 (23:47 +0100)
commit0119aa5280d9c4d9a619f408fea3671726462682
tree09b4dd077eda7ed85c6af7611af1847799922a9a
parentd8a1db00b0a6e790316f6430a4b276c4c0ee1651
php8: fix cross-compiling for x86_64

The build process uses a minilua helper for code generation
which must not be compiled with target cross-compiler but
the host compiler.

This error was spotted by buildbots:
ext/opcache/minilua /builder/shared-workdir/build/sdk/build_dir/
 target-x86_64_musl/php-8.0.1/ext/opcache/jit/dynasm/dynasm.lua
 -D X64=1 -o ext/opcache/jit/zend_jit_x86.c /builder/shared-workdir
 /build/sdk/build_dir/target-x86_64_musl/php-8.0.1/ext/opcache/jit/zend_jit_x86.dasc
/bin/bash: ext/opcache/minilua: No such file or directory
Makefile:406: recipe for target 'ext/opcache/jit/zend_jit_x86.c' failed
make[4]: *** [ext/opcache/jit/zend_jit_x86.c] Error 127

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lang/php8/Makefile
lang/php8/patches/1010-Fix-opcache-jit-minilua-compiling.patch [new file with mode: 0644]