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>
Sun, 6 Dec 2020 15:26:39 +0000 (15:26 +0000)
Gbp-Pq: Name 0001-Use-mcx16-on-x86-platforms-only.patch

configure.ac

index 99bf39a7ea79f243718c9a81e8aafbf74075ccd8..617cf6e0a954bafa424fe97a12bd6ed4fd97e6b7 100644 (file)
@@ -1487,12 +1487,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.