git: 9da256a46aa0 - main - science/kplib: Remove -march=native to fix build on some architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Jul 2022 20:25:26 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9da256a46aa0dd84a5605dcc4defcbbe4b855548
commit 9da256a46aa0dd84a5605dcc4defcbbe4b855548
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-23 20:24:58 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-23 20:24:58 +0000
science/kplib: Remove -march=native to fix build on some architectures
Reported by: fallout
---
science/kplib/files/patch-demo__kplib_CMakeLists.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/science/kplib/files/patch-demo__kplib_CMakeLists.txt b/science/kplib/files/patch-demo__kplib_CMakeLists.txt
new file mode 100644
index 000000000000..f36f906feb5b
--- /dev/null
+++ b/science/kplib/files/patch-demo__kplib_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- demo_kplib/CMakeLists.txt.orig 2022-07-23 20:23:38 UTC
++++ demo_kplib/CMakeLists.txt
+@@ -3,7 +3,7 @@ project(demo_kplib)
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fPIC")
+ set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") # Debug mode.
+-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native") # Default optimization.
++set(CMAKE_CXX_FLAGS_RELEASE "-O3") # Default optimization.
+
+ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE Release)