mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
science/lammps: don't set -march=native
It breaks compilation on some architectures and runtime on others. MFH: 2020Q2 (build fix blanket)
This commit is contained in:
parent
d220b8dd6d
commit
4d327269fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=530493
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= lammps
|
||||
PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= science
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
16
science/lammps/files/patch-cmake_CMakeLists.txt
Normal file
16
science/lammps/files/patch-cmake_CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
--- cmake/CMakeLists.txt.orig 2020-04-03 13:58:20 UTC
|
||||
+++ cmake/CMakeLists.txt
|
||||
@@ -62,11 +62,11 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
|
||||
endif()
|
||||
|
||||
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
||||
- set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native")
|
||||
+ set(CMAKE_TUNE_DEFAULT "-ffast-math")
|
||||
endif()
|
||||
|
||||
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
||||
- set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native")
|
||||
+ set(CMAKE_TUNE_DEFAULT "-ffast-math")
|
||||
endif()
|
||||
|
||||
# we require C++11
|
Loading…
Reference in New Issue
Block a user