1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

science/kplib: Remove -march=native to fix build on some architectures

Reported by:	fallout
This commit is contained in:
Yuri Victorovich 2022-07-23 13:24:58 -07:00
parent 8dc7394ac8
commit 9da256a46a

View File

@ -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)