svn commit: r511652 - head/math/openblas

Piotr Kubaj pkubaj at FreeBSD.org
Mon Sep 9 18:01:31 UTC 2019


Author: pkubaj
Date: Mon Sep  9 18:01:31 2019
New Revision: 511652
URL: https://svnweb.freebsd.org/changeset/ports/511652

Log:
  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 at yahoo.co.jp (maintainer), linimon (mentor)

Modified:
  head/math/openblas/Makefile

Modified: head/math/openblas/Makefile
==============================================================================
--- head/math/openblas/Makefile	Mon Sep  9 17:53:41 2019	(r511651)
+++ head/math/openblas/Makefile	Mon Sep  9 18:01:31 2019	(r511652)
@@ -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 defa
 .include <bsd.port.options.mk>
 
 .if ${ARCH} == powerpc64
+USE_GCC=	yes
 .  if ${PORT_OPTIONS:MPOWER6}
 TARGET_CPU_ARCH=	POWER6
 .else


More information about the svn-ports-all mailing list