From: Victor Julien Date: Fri, 3 Jun 2016 10:25:14 +0000 (+0200) Subject: configure: don't set -march=native for powerpc X-Git-Tag: suricata-3.1RC1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffba26d04a84c7342c0cbdbaee099136eb5990f6;p=thirdparty%2Fsuricata.git configure: don't set -march=native for powerpc --- diff --git a/configure.ac b/configure.ac index 71f402936a..47ab3e164a 100644 --- a/configure.ac +++ b/configure.ac @@ -364,6 +364,10 @@ AC_ARG_ENABLE(gccmarch_native, AS_HELP_STRING([--enable-gccmarch-native], [Enable gcc march=native gcc 4.2 and later only]),,[enable_gccmarch_native=yes]) AS_IF([test "x$enable_gccmarch_native" = "xyes"], [ + case "$host" in + *powerpc*) + ;; + *) OFLAGS="$CFLAGS" CFLAGS="$CFLAGS -march=native" AC_MSG_CHECKING([checking if $CC supports -march=native]) @@ -379,6 +383,8 @@ enable_gccmarch_native=no ] ) + ;; + esac ]) # options