summaryrefslogtreecommitdiffstats
path: root/patches/liboil-0.3.16/0002-fix-unaligned-access-whitelist-check.patch
blob: 86f6d76df5eab7c8e81774f06b057b9732aea87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Mon, 4 Aug 2014 17:47:38 +0200
Subject: [PATCH] fix unaligned access whitelist check

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 m4/as-unaligned-access.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/as-unaligned-access.m4 b/m4/as-unaligned-access.m4
index ede8bd2..3496505 100644
--- a/m4/as-unaligned-access.m4
+++ b/m4/as-unaligned-access.m4
@@ -4,7 +4,7 @@ dnl check if unaligned memory access works correctly
 AC_DEFUN([AS_UNALIGNED_ACCESS], [
   AC_MSG_CHECKING([if unaligned memory access works correctly])
   if test x"$as_cv_unaligned_access" = x ; then
-    case $host in
+    case "$host_cpu" in
       alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
         _AS_ECHO_N([(blacklisted) ])
         as_cv_unaligned_access=no