package/libpsl: require libiconv if !BR2_ENABLE_LOCALE
Fixes build error Checking for function "iconv_open" : NO Header <iconv.h> has symbol "iconv_open" : NO output/build/libpsl-0.21.1/meson.build:101:4: ERROR: Problem encountered: iconv implementation not found using this defconfig: BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_PACKAGE_LIBPSL=y Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a7c4f8e485
commit
4245a28f0e
@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_LIBPSL
|
||||
bool "libpsl"
|
||||
depends on BR2_USE_WCHAR # libunistring, icu
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_LIBIDN2 if !BR2_PACKAGE_ICU && !BR2_PACKAGE_LIBIDN
|
||||
select BR2_PACKAGE_LIBUNISTRING if !BR2_PACKAGE_ICU
|
||||
help
|
||||
|
@ -11,6 +11,10 @@ LIBPSL_LICENSE_FILES = COPYING src/LICENSE.chromium
|
||||
LIBPSL_DEPENDENCIES = host-pkgconf
|
||||
LIBPSL_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_ENABLE_LOCALE),)
|
||||
LIBPSL_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
# The order of checks is the same as done by libpsl when configured.
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN2)$(BR2_PACKAGE_LIBUNISTRING),yy)
|
||||
LIBPSL_CONF_OPTS += -Druntime=libidn2 -Dbuiltin=libidn2
|
||||
|
Loading…
Reference in New Issue
Block a user