Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2020 16:18:49 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r531531 - head/math/suitesparse
Message-ID:  <202004121618.03CGIn9x081151@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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-*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004121618.03CGIn9x081151>