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

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 21 Jul 2022 22:41:36 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d5465238b2e5d217a614d348d8ad37e2c0b4eac7

commit d5465238b2e5d217a614d348d8ad37e2c0b4eac7
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:40:43 +0000

    science/kplib: Remove -march=native to fix build on some architectures
    
    Reported by:    fallout
---
 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)