1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

math/costa: Fix build on some systems by removing the -native flag

This commit is contained in:
Yuri Victorovich 2023-02-28 08:33:13 -08:00
parent 01794d818d
commit e1444d580b
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= costa
DISTVERSIONPREFIX= v
DISTVERSION= 2.2
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org

View File

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