Author: nbd
Date: 2014-11-23 21:10:02 +0100 (Sun, 23 Nov 2014)
New Revision: 43349

Modified:
   trunk/package/libs/lzo/Makefile
Log:
lzo: disable unaligned access for everything except x86

Fixes issues on ARM

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/libs/lzo/Makefile
===================================================================
--- trunk/package/libs/lzo/Makefile     2014-11-23 20:09:56 UTC (rev 43348)
+++ trunk/package/libs/lzo/Makefile     2014-11-23 20:10:02 UTC (rev 43349)
@@ -45,6 +45,10 @@
 TARGET_CFLAGS += $(FPIC)
 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
 
+ifeq ($(CONFIG_i386)$(CONFIG_x86_64),)
+  TARGET_CFLAGS += -DLZO_CFG_NO_UNALIGNED=1
+endif
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to