mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
math/openblas: fix build on powerpc64 with clang, remove OPENMP option on powerpc64
On powerpc64 OpenMP is always used when USE_THREADS is defined (which we do unconditionally). This means that OPENMP option on powerpc64 doesn't have any effect and it should be removed. Clang also has some problems when linking Fortran libraries with OpenMP, so use GCC for powerpc64. PR: 240379 Approved by: phd_kimberlite@yahoo.co.jp (maintainer), linimon (mentor)
This commit is contained in:
parent
fd6a515b4b
commit
7942b37f98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511652
@ -41,6 +41,7 @@ OPTIONS_DEFINE= INTERFACE64 OPENMP
|
||||
OPTIONS_DEFINE_i386= DYNAMIC_ARCH AVX AVX2
|
||||
OPTIONS_DEFINE_amd64= ${OPTIONS_DEFINE_i386}
|
||||
OPTIONS_DEFINE_powerpc64= POWER6
|
||||
OPTIONS_EXCLUDE_powerpc64= OPENMP
|
||||
|
||||
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
||||
OPTIONS_DEFAULT_i386= DYNAMIC_ARCH
|
||||
@ -57,6 +58,7 @@ POWER6_DESC= Optimize for POWER6, instead of the default PPC970
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == powerpc64
|
||||
USE_GCC= yes
|
||||
. if ${PORT_OPTIONS:MPOWER6}
|
||||
TARGET_CPU_ARCH= POWER6
|
||||
.else
|
||||
|
Loading…
Reference in New Issue
Block a user