summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/php/Config.ext7
-rw-r--r--package/php/php.mk2
2 files changed, 4 insertions, 5 deletions
diff --git a/package/php/Config.ext b/package/php/Config.ext
index bb6ada6a91..6b3d86925d 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -164,13 +164,12 @@ comment "Human language and character encoding support"
config BR2_PACKAGE_PHP_EXT_GETTEXT
bool "Gettext"
- depends on BR2_USE_WCHAR
- select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
+ depends on BR2_SYSTEM_ENABLE_NLS
help
Gettext support
-comment "Gettext support needs a toolchain w/ wchar"
- depends on !BR2_USE_WCHAR
+comment "Gettext support needs NLS enabled"
+ depends on !BR2_SYSTEM_ENABLE_NLS
config BR2_PACKAGE_PHP_EXT_ICONV
bool "iconv"
diff --git a/package/php/php.mk b/package/php/php.mk
index fe531a4ae9..1a1ed21718 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -160,7 +160,7 @@ endif
ifeq ($(BR2_PACKAGE_PHP_EXT_GETTEXT),y)
PHP_CONF_OPTS += --with-gettext=$(STAGING_DIR)/usr
-PHP_DEPENDENCIES += $(if $(BR2_NEEDS_GETTEXT),gettext)
+PHP_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_ICONV),y)
OpenPOWER on IntegriCloud