libcoap: Pass endian flags down to target
authorKarl Palsson <[email protected]>
Wed, 14 Oct 2015 17:18:08 +0000 (17:18 +0000)
committerKarl Palsson <[email protected]>
Wed, 14 Oct 2015 17:18:08 +0000 (17:18 +0000)
Fixes github issue #1856

Signed-off-by: Karl Palsson <[email protected]>
libs/libcoap/Makefile

index 41d553599a63a915423280a476048e1d6e7f3a7f..8e6ef5d250324b5d42ddfcb44f2f23be00e31622 100644 (file)
@@ -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/