disable unaligned access optimization on all __STRICT_ALIGNMENT archs
This commit is contained in:
parent
8d001788a9
commit
743fe2104c
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2011/07/11 12:13:03 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2011/07/27 19:06:45 naddy Exp $
|
||||
|
||||
COMMENT= LZMA compression and decompression tools
|
||||
|
||||
DISTNAME= xz-5.0.3
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
SHARED_LIBS= lzma 1.0 # .5.3
|
||||
CATEGORIES= archivers
|
||||
|
||||
|
16
archivers/xz/patches/patch-config_h_in
Normal file
16
archivers/xz/patches/patch-config_h_in
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-config_h_in,v 1.1 2011/07/27 19:06:45 naddy Exp $
|
||||
--- config.h.in.orig Wed Jul 27 20:37:33 2011
|
||||
+++ config.h.in Wed Jul 27 20:38:31 2011
|
||||
@@ -289,7 +289,11 @@
|
||||
|
||||
/* Define to 1 if the system supports fast unaligned access to 16-bit and
|
||||
32-bit integers. */
|
||||
-#undef TUKLIB_FAST_UNALIGNED_ACCESS
|
||||
+#include <sys/types.h>
|
||||
+#if !defined(__STRICT_ALIGNMENT)
|
||||
+#define \
|
||||
+ TUKLIB_FAST_UNALIGNED_ACCESS 1
|
||||
+#endif
|
||||
|
||||
/* Define to 1 if the amount of physical memory can be detected with
|
||||
_system_configuration.physmem. */
|
Loading…
Reference in New Issue
Block a user