From c4a8c4eae22a81c7dac66204db5620491b53ba8c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 14 Oct 2015 17:18:08 +0000 Subject: [PATCH] libcoap: Pass endian flags down to target Fixes github issue #1856 Signed-off-by: Karl Palsson --- libs/libcoap/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/libcoap/Makefile b/libs/libcoap/Makefile index 41d553599..8e6ef5d25 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/