1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

math/cryptominisat: Unbreak on aarch64.

PR:		229724
Submitted by:	Greg V <greg@unrelenting.technology>
Approved by:	tcberner (mentor)
This commit is contained in:
Gleb Popov 2018-08-10 10:20:15 +00:00
parent b960cf7da0
commit 2b5ee65538
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476827
2 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= cryptominisat
DISTVERSION= 5.6.3
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= arrowd@FreeBSD.org

View File

@ -0,0 +1,17 @@
The `-mtune=native` flag is not supported on aarch64, remove it.
--- CMakeLists.txt.orig 2018-07-11 20:29:53 UTC
+++ CMakeLists.txt
@@ -182,11 +182,11 @@ if (NOT MSVC)
add_compile_options( -pthread )
add_compile_options("$<$<CONFIG:RELWITHDEBINFO>:-O2>")
- add_compile_options("$<$<CONFIG:RELWITHDEBINFO>:-mtune=native>")
+ #add_compile_options("$<$<CONFIG:RELWITHDEBINFO>:-mtune=native>")
add_compile_options("$<$<CONFIG:RELEASE>:-O2>")
add_compile_options("$<$<CONFIG:RELEASE>:-g0>")
- add_compile_options("$<$<CONFIG:RELEASE>:-mtune=native>")
+ #add_compile_options("$<$<CONFIG:RELEASE>:-mtune=native>")
add_compile_options("$<$<CONFIG:DEBUG>:-O0>")