liblzo: Disable unaligned access for arm (#7603)

This commit is contained in:
xtkoba 2021-09-30 22:38:50 +09:00 committed by GitHub
parent 765894d740
commit afa51dc931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Portable lossless data compression library"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.10
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/lzo-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=37ed4369e45944c53306b0d6a36b66f03e5b6aede8849c9b6388f4b62b20b443
TERMUX_PKG_BREAKS="liblzo-dev"

View File

@ -0,0 +1,12 @@
--- a/include/lzo/lzodefs.h
+++ b/include/lzo/lzodefs.h
@@ -2604,7 +2604,8 @@
# define LZO_OPT_UNALIGNED64 1
# endif
#elif (LZO_ARCH_ARM)
-# if defined(__ARM_FEATURE_UNALIGNED)
+# if defined(__ANDROID__)
+# elif defined(__ARM_FEATURE_UNALIGNED)
# if ((__ARM_FEATURE_UNALIGNED)+0)
# ifndef LZO_OPT_UNALIGNED16
# define LZO_OPT_UNALIGNED16 1