git: efc656517495 - main - biology/hhsuite: Fix build on some architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Aug 2022 16:21:50 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=efc656517495adffd7398d02ed01455f32bdf3b9
commit efc656517495adffd7398d02ed01455f32bdf3b9
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-04 16:19:31 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-04 16:21:45 +0000
biology/hhsuite: Fix build on some architectures
... by removing -march=native.
Reported by: fallout
---
biology/hhsuite/files/patch-src_CMakeLists.txt | 32 ++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/biology/hhsuite/files/patch-src_CMakeLists.txt b/biology/hhsuite/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..a073eb7f342c
--- /dev/null
+++ b/biology/hhsuite/files/patch-src_CMakeLists.txt
@@ -0,0 +1,32 @@
+- remove -mcpu=native based on fallout messages from armv7
+
+--- src/CMakeLists.txt.orig 2022-08-04 16:05:31 UTC
++++ src/CMakeLists.txt
+@@ -53,17 +53,17 @@ if (NATIVE_ARCH AND (ARCH_FLAGS STREQUAL ""))
+ message(WARNING "At least SSE4.1 is needed for best performance")
+ endif ()
+ # clang has a problem with march=native on travis
+- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0.0")
+- set(ARCH_FLAGS "${SSE_FLAGS}")
+- else()
+- set(ARCH_FLAGS "-march=native")
+- endif()
++ #if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0.0")
++ # set(ARCH_FLAGS "${SSE_FLAGS}")
++ #else()
++ # set(ARCH_FLAGS "-march=native")
++ #endif()
+ else ()
+- if (PPC64)
+- set(ARCH_FLAGS "-mcpu=native")
+- else ()
+- set(ARCH_FLAGS "-march=native")
+- endif ()
++ #if (PPC64)
++ # set(ARCH_FLAGS "-mcpu=native")
++ #else ()
++ # set(ARCH_FLAGS "-march=native")
++ #endif ()
+ endif ()
+ endif ()
+