Use -mcx16 on x86 platforms only
authorAron Xu <aron@debian.org>
Tue, 2 Feb 2016 04:17:24 +0000 (12:17 +0800)
committerJean Baptiste Favre <debian@jbfavre.org>
Fri, 22 Jun 2018 15:13:53 +0000 (16:13 +0100)
Gbp-Pq: Name 0001-Use-mcx16-on-x86-platforms-only.patch

configure.ac

index 9e1364a7a4f6d7f610b4ae3fba0d0a0c436168e8..3617c6b9f6f63ed9386677fd97562916bd28209b 100644 (file)
@@ -1352,12 +1352,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.