package/php: simplify icu configure options

Since php-7.4 upstream switched to pkg-config to detect icu:
20fa2e7b58

Remove all unneeded code from php.mk.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Bernd Kuhls 2022-06-11 15:18:43 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 07044207ed
commit f939cf7c8c

View File

@ -176,13 +176,8 @@ endif
endif endif
ifeq ($(BR2_PACKAGE_PHP_EXT_INTL),y) ifeq ($(BR2_PACKAGE_PHP_EXT_INTL),y)
PHP_CONF_OPTS += --enable-intl --with-icu-dir=$(STAGING_DIR)/usr PHP_CONF_OPTS += --enable-intl
PHP_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
PHP_DEPENDENCIES += icu PHP_DEPENDENCIES += icu
# The intl module is implemented in C++, but PHP fails to use
# g++ as the compiler for the final link. As a workaround,
# tell it to link libstdc++.
PHP_EXTRA_LIBS += -lstdc++
endif endif
ifeq ($(BR2_PACKAGE_PHP_EXT_GMP),y) ifeq ($(BR2_PACKAGE_PHP_EXT_GMP),y)