aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-23 20:10:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-23 20:10:02 +0000
commit061319ec3dfe9b6d14af1286a1d9979db56048d7 (patch)
treeeb6bbdc07274b6fecd01012846c7e730ea5c67b8
parenta70800a7eda11fefe43ba2c29a16da9733388ce3 (diff)
downloadupstream-061319ec3dfe9b6d14af1286a1d9979db56048d7.tar.gz
upstream-061319ec3dfe9b6d14af1286a1d9979db56048d7.tar.bz2
upstream-061319ec3dfe9b6d14af1286a1d9979db56048d7.zip
lzo: disable unaligned access for everything except x86
Fixes issues on ARM Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43349
-rw-r--r--package/libs/lzo/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libs/lzo/Makefile b/package/libs/lzo/Makefile
index b2bab05f3e..6a88a6f384 100644
--- a/package/libs/lzo/Makefile
+++ b/package/libs/lzo/Makefile
@@ -45,6 +45,10 @@ endef
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/