SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
54
sysutils/ugrep/patches/patch-configure
Normal file
54
sysutils/ugrep/patches/patch-configure
Normal file
|
@ -0,0 +1,54 @@
|
|||
No -march=native, please.
|
||||
Causes the AVX check to fail, but we disable that with --disable-avx
|
||||
|
||||
Index: configure
|
||||
--- configure.orig
|
||||
+++ configure
|
||||
@@ -8471,7 +8471,7 @@ printf "%s\n" "no" >&6; }
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports SSE2 intrinsics" >&5
|
||||
printf %s "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>
|
||||
@@ -8511,7 +8511,7 @@ printf "%s\n" "no" >&6; }
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports AVX intrinsics" >&5
|
||||
printf %s "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>
|
||||
@@ -8610,7 +8610,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.b
|
||||
SIMD_FLAGS="-DHAVE_NEON"
|
||||
else
|
||||
save_CXXFLAGS=$CXXFLAGS
|
||||
- CXXFLAGS="-march=native"
|
||||
+ CXXFLAGS=""
|
||||
ac_ext=cpp
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
@@ -8778,9 +8778,9 @@ else $as_nop
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam 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>
|
||||
@@ -8800,7 +8800,7 @@ else $as_nop
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam 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
|
Loading…
Add table
Add a link
Reference in a new issue