git: 5d5af2d3df69 - 2022Q3 - science/kplib: Remove -march=native to fix build on some architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Jul 2022 22:42:04 UTC
The branch 2022Q3 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5d5af2d3df6974680062029173b8e54884420f0c commit 5d5af2d3df6974680062029173b8e54884420f0c Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-07-21 22:40:43 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-07-21 22:41:57 +0000 science/kplib: Remove -march=native to fix build on some architectures Reported by: fallout (cherry picked from commit d5465238b2e5d217a614d348d8ad37e2c0b4eac7) --- science/kplib/files/patch-CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/science/kplib/files/patch-CMakeLists.txt b/science/kplib/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..99cbeca9ee61 --- /dev/null +++ b/science/kplib/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-07-21 22:39:52 UTC ++++ CMakeLists.txt +@@ -4,7 +4,7 @@ project(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) + endif(NOT CMAKE_BUILD_TYPE)