From: Karl Palsson Date: Wed, 14 Oct 2015 17:18:08 +0000 (+0000) Subject: libcoap: Pass endian flags down to target X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c4a8c4eae22a81c7dac66204db5620491b53ba8c;p=feed%2Fpackages.git libcoap: Pass endian flags down to target Fixes github issue #1856 Signed-off-by: Karl Palsson --- diff --git a/libs/libcoap/Makefile b/libs/libcoap/Makefile index 41d553599a..8e6ef5d250 100644 --- a/libs/libcoap/Makefile +++ b/libs/libcoap/Makefile @@ -42,6 +42,10 @@ CONFIGURE_ARGS += \ --disable-examples \ --disable-documentation +ifeq ($(CONFIG_BIG_ENDIAN),y) +TARGET_CFLAGS += -DWORDS_BIGENDIAN +endif + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/