$OpenBSD: patch-configure,v 1.6 2020/11/24 08:06:56 bcallah Exp $

No -march=native, please.
Causes the AVX check to fail, but we disable that with --disable-avx

Index: configure
--- configure.orig
+++ configure
@@ -7862,7 +7862,7 @@ $as_echo "no" >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports AVX intrinsics" >&5
 $as_echo_n "checking whether ${CXX} supports AVX intrinsics... " >&6; }
   save_CXXFLAGS=$CXXFLAGS
-  CXXFLAGS="-march=native"
+  CXXFLAGS=""
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <immintrin.h>
@@ -7929,7 +7929,7 @@ $as_echo "no" >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports SSE2 intrinsics" >&5
 $as_echo_n "checking whether ${CXX} supports SSE2 intrinsics... " >&6; }
   save_CXXFLAGS=$CXXFLAGS
-  CXXFLAGS="-march=native"
+  CXXFLAGS=""
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <emmintrin.h>
@@ -7996,7 +7996,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
     SIMD_FLAGS="-DHAVE_NEON"
   else
     save_CXXFLAGS=$CXXFLAGS
-    CXXFLAGS="-march=native"
+    CXXFLAGS=""
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <arm_neon.h>
@@ -8033,9 +8033,9 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       if test "x$mneon_ok" = "xyes"; then
-        SIMD_FLAGS="-march=native -DHAVE_NEON"
+        SIMD_FLAGS="-DHAVE_NEON"
       else
-        CXXFLAGS="-march=native -mfpu=neon"
+        CXXFLAGS="-mfpu=neon"
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <arm_neon.h>
@@ -8054,7 +8054,7 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         if test "x$mneon_ok" = "xyes"; then
-          SIMD_FLAGS="-march=native -mfpu=neon -DHAVE_NEON"
+          SIMD_FLAGS="-mfpu=neon -DHAVE_NEON"
         fi
       fi
     fi
