Edit configure.ac to disable -march=native
authorPeter Michael Green <plugwash@raspbian.org>
Thu, 23 Jan 2020 01:41:25 +0000 (01:41 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 23 Jan 2020 01:41:25 +0000 (01:41 +0000)
-march=native is inappropriate for a binary distribution like Debian.

Gbp-Pq: Name no-march-native

configure.ac

index 31971a76e5f7c96913a41cbc09eedaa8509b20fb..85263326843697051068e3249dfe80b226d892f8 100644 (file)
@@ -136,7 +136,7 @@ AM_CONDITIONAL([FMA_OPT], $fma)
 AX_CHECK_COMPILE_FLAG([-msse4.1], [sse41=true], [sse41=false], [$WERROR])
 AM_CONDITIONAL([SSE41_OPT], $sse41)
 
-AX_CHECK_COMPILE_FLAG([-march=native], [arch_native=true], [arch_native=false], [$WERROR])
+AX_CHECK_COMPILE_FLAG([-march=native], [arch_native=false], [arch_native=false], [$WERROR])
 AM_CONDITIONAL([MARCH_NATIVE_OPT], $arch_native)
 
 AC_ARG_WITH([extra-includes],