Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2022 20:26:10 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 7c6753bb87e1 - 2022Q3 - science/kplib: Remove -march=native to fix build on some architectures
Message-ID:  <202207232026.26NKQAr0047428@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by yuri:

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

commit 7c6753bb87e10384f87a36b9a59820ba519bdafd
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:26:08 +0000

    science/kplib: Remove -march=native to fix build on some architectures
    
    Reported by:    fallout
    
    (cherry picked from commit 9da256a46aa0dd84a5605dcc4defcbbe4b855548)
---
 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207232026.26NKQAr0047428>