php8: fixup libiconv usage (refs openwrt/openwrt#10024)#18919
php8: fixup libiconv usage (refs openwrt/openwrt#10024)#18919mhei merged 1 commit intoopenwrt:masterfrom
Conversation
|
weird that php doesn't support the builtin one. Anyway, looks like it compiles. |
|
For I get |
|
nls.mk has include in CFLAGS |
|
Hi @mhei Do you still have remnants of libiconv-stub in $(STAGING_DIR)/usr/lib/libiconv-stub/{include,lib}? If yes I'd suggest to remove them and compile php8 again. Kind regards, |
|
I don't have the stub around anymore. But I think I found the problem, runtime-testing needed, but not today anymore... downgrading to draft for now. |
|
In any case, I compile tested locally with CONFIG_ALL +- CONFIG_BUILD_NLS. Everything relevant compiles. |
|
nls.mk changes were merged. |
Since the OpenWrt's stub libiconv implementation is now gone, we can build against musl's internal one or the external libiconv implementation. This needs minor adjustements in the makefile to allow PHPs build to choose the right path when cross-compiling. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
|
I've updated title and description. Actually, it is possible to link PHP against the musl iconv and I've also run-time tested. I've also rebased this PR. |
|
Excellent news. |
|
Looks good.
|
strange. |
|
Looks like CI hiccup. |
Maintainer: me
Compile tested: mxs
Run tested: mxs
Description:
Since the OpenWrt's stub libiconv implementation is now gone,
we can build against musl's internal one or the external libiconv
implementation.
This needs minor adjustements in the makefile to allow PHPs build
to choose the right path when cross-compiling.
Signed-off-by: Michael Heimpold mhei@heimpold.de
Edit: updated description to reflect new approach