aboutsummaryrefslogtreecommitdiff
path: root/package/benejson
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2015-01-26 11:17:38 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-01-26 17:16:03 +0100
commitde5082fa21f4fcb28da0215d0f529b1165d73f9a (patch)
tree0981d15cf94b66279dd4553270f5b01467a442d3 /package/benejson
parent953be8f39d57b7ac0d73ccade50294580b6af008 (diff)
downloadbuildroot-de5082fa21f4fcb28da0215d0f529b1165d73f9a.tar.gz
buildroot-de5082fa21f4fcb28da0215d0f529b1165d73f9a.tar.bz2
benejson: fix for non-wchar toolchains
wchar needs to be disabled in order for it to build on !wchar. Fixes: http://autobuild.buildroot.net/results/71f/71f19d5056b56d40463b9fef7fa859e0025c4991/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/benejson')
-rw-r--r--package/benejson/benejson.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/benejson/benejson.mk b/package/benejson/benejson.mk
index 75753d2da4..2b8d09d301 100644
--- a/package/benejson/benejson.mk
+++ b/package/benejson/benejson.mk
@@ -9,9 +9,17 @@ BENEJSON_SITE = $(call github,codehero,benejson,$(BENEJSON_VERSION))
BENEJSON_LICENSE = MIT
BENEJSON_LICENSE_FILES = LICENSE
BENEJSON_INSTALL_STAGING = YES
-
BENEJSON_DEPENDENCIES = host-scons
+# wchar support needs to be manually disabled
+ifeq ($(BR2_USE_WCHAR),)
+define BENEJSON_DISABLE_WCHAR
+ $(SED) 's,^#define BNJ_WCHAR_SUPPORT,#undef BNJ_WCHAR_SUPPORT,' \
+ $(@D)/benejson/benejson.h
+endef
+BENEJSON_POST_PATCH_HOOKS += BENEJSON_DISABLE_WCHAR
+endif
+
define BENEJSON_BUILD_CMDS
(cd $(@D); \
$(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) \