[Buildroot] [PATCH 1/1] package/php: use correct cxxflags for icu support
Bernd Kuhls
bernd.kuhls at t-online.de
Mon Jun 5 20:07:26 UTC 2017
Php lacks "-std=c++11", provided by icu-config, when compiling icu
support leading to a build failure:
/home/peko/autobuild/instance-1/output/host/usr/sh4-buildroot-linux-uclibc/sysroot/usr/include/unicode/umachine.h:347:13:
error: 'char16_t' does not name a type
typedef char16_t UChar;
Fixes
http://autobuild.buildroot.net/results/238/238d0e4bb205c0e7288903c6498e6c1787d86a1b/
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
package/php/php.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/php/php.mk b/package/php/php.mk
index cfc678991..2e4b667f9 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -173,6 +173,7 @@ endif
ifeq ($(BR2_PACKAGE_PHP_EXT_INTL),y)
PHP_CONF_OPTS += --enable-intl --with-icu-dir=$(STAGING_DIR)/usr
+PHP_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) `$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
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,
--
2.11.0
More information about the buildroot
mailing list