Date: Mon, 9 Sep 2019 18:01:31 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511652 - head/math/openblas Message-ID: <201909091801.x89I1VYT001020@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909091801.x89I1VYT001020>