mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
Index: configure.ac
|
|
--- configure.ac.orig
|
|
+++ configure.ac
|
|
@@ -156,15 +156,6 @@ if test "x$cross_compiling" = "xyes"; then
|
|
[mneon_ok=no])
|
|
if test "x$mneon_ok" = "xyes"; then
|
|
SIMD_FLAGS="-mfpu=neon -DHAVE_NEON"
|
|
- else
|
|
- # this part is a bit iffy,,,
|
|
- CXXFLAGS="-march=native -mfpu=neon"
|
|
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[uint64x2_t n; uint64_t m = vgetq_lane_u64(n, 0);]])],
|
|
- [mneon_ok=yes],
|
|
- [mneon_ok=no])
|
|
- if test "x$mneon_ok" = "xyes"; then
|
|
- SIMD_FLAGS="-march=native -mfpu=neon -DHAVE_NEON"
|
|
- fi
|
|
fi
|
|
CXXFLAGS=$save_CXXFLAGS
|
|
fi
|
|
@@ -239,14 +230,6 @@ else
|
|
[mneon_ok=no])
|
|
if test "x$mneon_ok" = "xyes"; then
|
|
SIMD_FLAGS="-mfpu=neon -DHAVE_NEON"
|
|
- else
|
|
- CXXFLAGS="-march=native -mfpu=neon"
|
|
- AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]],[[uint64x2_t n; uint64_t m = vgetq_lane_u64(n, 0);]])],
|
|
- [mneon_ok=yes],
|
|
- [mneon_ok=no])
|
|
- if test "x$mneon_ok" = "xyes"; then
|
|
- SIMD_FLAGS="-march=native -mfpu=neon -DHAVE_NEON"
|
|
- fi
|
|
fi
|
|
CXXFLAGS=$save_CXXFLAGS
|
|
fi
|