commit 6b10101b159a3a61cbd982f429d0cb367ffaf04f
parent 56c19739dceb39542e2a4dca9e40b6eac8bde61d
Author: Steven Barth <steven@midlink.org>
Date: Thu, 22 Oct 2015 10:35:13 +0200
Merge pull request #1860 from karlp/libcoap-endian
libcoap: Pass endian flags down to target
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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/