Skip to contentSkip to conversation

package/cppcms: use correct cxxflags for icu support

PATCH New Bernd Kuhls 2 participants 2 messages Jun 5, 2017 – Jun 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cppcms: use correct cxxflags for icu support

Cppcms lacks "-std=c++11", provided by icu-config, when compiling icu support leading to a build failure:

/home/buildroot/buildroot/output/host/usr/nios2-buildroot-linux-gnu/sysroot/usr/include/unicode/umachine.h:347:13:
error: ?char16_t? does not name a type

Fixes
http://autobuild.buildroot.net/results/a81/a81ef7fc945e393179fef7539e01550830b71d22/

---
 package/cppcms/cppcms.mk | 2 ++
 1 file changed, 2 insertions(+)
package/cppcms/cppcms.mk +2 -0
index 75ef36afb..789d60498 100644
@@ -19,6 +19,8 @@ CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
 
 ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
 CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON -DDISABLE_ICU_LOCALE=OFF
+CPPCMS_CONF_OPTS += \
+	-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) `$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
 CPPCMS_DEPENDENCIES += icu
 else
 CPPCMS_CONF_OPTS += -DDISABLE_ICONV=OFF -DDISABLE_ICU_LOCALE=ON
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/cppcms: use correct cxxflags for icu support

Hello,

package/cppcms/cppcms.mk CPPCMS_DEPENDENCIES = zlib pcre libgcrypt · line 26

Quoted 7 lines · Bernd Kuhls

ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
CPPCMS_CONF_OPTS += -DDISABLE_ICONV=ON -DDISABLE_ICU_LOCALE=OFF

package/cppcms/cppcms.mk +2 -0
+CPPCMS_CONF_OPTS += \
+	-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) `$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
 CPPCMS_DEPENDENCIES += icu
 else
 CPPCMS_CONF_OPTS += -DDISABLE_ICONV=OFF -DDISABLE_ICU_LOCALE=ON

This patch doesn't apply. Git master doesn't have the DISABLE_ICU_LOCALE=OFF / DISABLE_ICU_LOCALE=ON.

On which tree is this patch based? Is it based on other patches that you haven't submitted?

Could you adjust this, and resubmit an updated version?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com