php8: add patch for loongarch64 support
authorMichael Heimpold <mhei@heimpold.de>
Mon, 23 Dec 2024 20:41:05 +0000 (21:41 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Fri, 27 Dec 2024 10:13:08 +0000 (11:13 +0100)
commitca9c3d1baea38f0e5cedae7b74cfe8ef15a3ec83
treea166bf52f1684ff763caa8600042169ec492070f
parent031bf6f3554921676e6ba3fa67be336115300c8e
php8: add patch for loongarch64 support

This backported patch is required to fix the build for loongarch64:
...
... loongarch64-openwrt-linux-musl/bin/ld.bfd: Zend/zend_fibers.o: in function `zend_fiber_init_context':
zend_fibers.c:(.text+0xb34): undefined reference to `getcontext'
... loongarch64-openwrt-linux-musl/bin/ld.bfd: zend_fibers.c:(.text+0xb38): undefined reference to `getcontext'
... loongarch64-openwrt-linux-musl/bin/ld.bfd: zend_fibers.c:(.text+0xb74): undefined reference to `makecontext'
... loongarch64-openwrt-linux-musl/bin/ld.bfd: zend_fibers.c:(.text+0xb78): undefined reference to `makecontext'
... loongarch64-openwrt-linux-musl/bin/ld.bfd: Zend/zend_fibers.o: in function `.L170':
zend_fibers.c:(.text+0xe34): undefined reference to `swapcontext'
...

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lang/php8/patches/1030-loongarch64-support-for-fibers.patch [new file with mode: 0644]