git: a8fa66ed77bc - main - math/oink: don't set -march=native
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jan 2022 18:17:50 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a8fa66ed77bcad15c3d970eff36b6740f690c916
commit a8fa66ed77bcad15c3d970eff36b6740f690c916
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-04 18:11:31 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-04 18:11:31 +0000
math/oink: don't set -march=native
---
math/oink/Makefile | 1 +
math/oink/files/patch-CMakeLists.txt | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/math/oink/Makefile b/math/oink/Makefile
index 0acc7592419d..38eefe3d4458 100644
--- a/math/oink/Makefile
+++ b/math/oink/Makefile
@@ -1,5 +1,6 @@
PORTNAME= oink
DISTVERSION= g20210704
+PORTREVISION= 1
CATEGORIES= math
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
diff --git a/math/oink/files/patch-CMakeLists.txt b/math/oink/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..eb04dfb8a137
--- /dev/null
+++ b/math/oink/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig 2021-12-26 00:23:48 UTC
++++ CMakeLists.txt
+@@ -46,7 +46,6 @@ add_library(oink::oink ALIAS oink)
+ set_target_properties(oink PROPERTIES VERSION ${oink_VERSION} SOVERSION ${oink_VERSION_MAJOR})
+ target_compile_features(oink PUBLIC c_std_11 cxx_std_11)
+ target_compile_options(oink PRIVATE -Wall -Wextra)
+-target_compile_options(oink PRIVATE "$<$<CONFIG:Release,RelWithDebInfo>:-march=native>")
+ target_include_directories(oink
+ PRIVATE
+ ${CMAKE_CURRENT_LIST_DIR}/src