Add architecture define for s390/s390x and remove redundant sparc check
This commit is contained in:
parent
7423582705
commit
7bf5edc4f2
@ -76,7 +76,6 @@ AC_ARG_ENABLE([tests],
|
||||
AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
|
||||
|
||||
AS_CASE([$host_cpu],
|
||||
[*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
|
||||
[*arm*], [host_cpu=arm],
|
||||
[*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
|
||||
[i?86], [HOSTARCH=intel],
|
||||
|
@ -41,6 +41,7 @@
|
||||
#define __STRICT_ALIGNMENT
|
||||
#if defined(__i386) || defined(__i386__) || \
|
||||
defined(__x86_64) || defined(__x86_64__) || \
|
||||
defined(__s390__) || defined(__s390x__) || \
|
||||
defined(__aarch64__) || \
|
||||
((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
|
||||
#undef __STRICT_ALIGNMENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user