From e1444d580be63126059934cbf0925fc0aaadb322 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 28 Feb 2023 08:33:13 -0800 Subject: [PATCH] math/costa: Fix build on some systems by removing the -native flag --- math/costa/Makefile | 1 + math/costa/files/patch-CMakeLists.txt | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 math/costa/files/patch-CMakeLists.txt diff --git a/math/costa/Makefile b/math/costa/Makefile index 12f41b4d51ef..4cd520b6953f 100644 --- a/math/costa/Makefile +++ b/math/costa/Makefile @@ -1,6 +1,7 @@ PORTNAME= costa DISTVERSIONPREFIX= v DISTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org diff --git a/math/costa/files/patch-CMakeLists.txt b/math/costa/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..72ff9c11ba6e --- /dev/null +++ b/math/costa/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2023-02-28 08:57:54 UTC ++++ CMakeLists.txt +@@ -58,7 +58,7 @@ adjust_mpiexec_flags() + # OpenMP + find_package(OpenMP COMPONENTS CXX REQUIRED) + +-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -funroll-loops -march=native -DNDEBUG") ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -funroll-loops") + + # Bundled dependencies + #