svn commit: r531531 - head/math/suitesparse
Thierry Thomas
thierry at FreeBSD.org
Sun Apr 12 16:18:50 UTC 2020
Author: thierry
Date: Sun Apr 12 16:18:49 2020
New Revision: 531531
URL: https://svnweb.freebsd.org/changeset/ports/531531
Log:
Fix on i386, by using Gcc.
Unfortunately, SuiteSparse is now hit by the problem listed in PR 230888
(missing support of libatomic).
Reported by: pkgfallout via antoine@
Modified:
head/math/suitesparse/Makefile
Modified: head/math/suitesparse/Makefile
==============================================================================
--- head/math/suitesparse/Makefile Sun Apr 12 16:17:49 2020 (r531530)
+++ head/math/suitesparse/Makefile Sun Apr 12 16:18:49 2020 (r531531)
@@ -18,7 +18,7 @@ USE_GITHUB= yes
GH_ACCOUNT= DrTimothyAldenDavis
GH_PROJECT= SuiteSparse
-USES= cmake:insource compiler:${OPENMP}c++11-lib fortran gmake localbase:ldflags
+USES= cmake:insource fortran gmake localbase:ldflags
USE_LDCONFIG= yes
ALL_TARGET= library # skip demos
INSTALL_TARGET= install # skip USES=cmake
@@ -56,6 +56,16 @@ OPENMP_VARS= OPENMP=gcc-
TBB_DESC= Intel threading building blocks
TBB_LIB_DEPENDS= libtbb.so:devel/tbb
TBB_MAKE_ENV= TBB="-ltbb" SPQR_CONFIG="-DHAVE_TBB"
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386
+# See PR 230888 : Missing 64 bit atomic functions for i386
+USES+= compiler:gcc-c++11-lib
+LDFLAGS+= -latomic
+.else
+USES+= compiler:${OPENMP}c++11-lib
+.endif
post-extract:
${RM} -r ${WRKSRC}/metis-*
More information about the svn-ports-head
mailing list