From 05c3500d4f9b48ca96a80334485fc74a2fd8a04d Mon Sep 17 00:00:00 2001 From: Aron Xu Date: Tue, 2 Feb 2016 12:17:24 +0800 Subject: [PATCH] Use -mcx16 on x86 platforms only Gbp-Pq: Name 0001-Use-mcx16-on-x86-platforms-only.patch --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index fb38b7a5..c2610f6e 100644 --- a/configure.ac +++ b/configure.ac @@ -1495,12 +1495,15 @@ CFLAGS="${__saved_CFLAGS}" AC_LANG_POP AC_SUBST(has_128bit_cas) +case "$host_cpu" in + amd64|x86_64|i*86) AS_IF([test "x$has_128bit_cas" = "x1"], [ AS_IF([test "x$ax_cv_c_compiler_vendor" != "xintel"], [ TS_ADDTO(AM_CFLAGS, [-mcx16]) TS_ADDTO(AM_CXXFLAGS, [-mcx16]) ]) ]) +esac # Check for POSIX capabilities library. # If we don't find it, disable checking for header. -- 2.30.2