svn commit: r512582 - head/math/suitesparse

Piotr Kubaj pkubaj at anongoth.pl
Tue Sep 24 16:04:34 UTC 2019


Do you mean compiler supporting C++11 and openmp?

There's no such USES. Usually we use a hack like this:

USES=	compiler:c++11-lang

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == gcc
USE_GCC=	yes
.endif

.include <bsd.port.post.mk>

This way, when on GCC platforms, we can have both C++11 and OpenMP (GCC supports OpenMP).

On 19-09-24 17:56:30, Thierry Thomas wrote:
> Le mar. 24 sept. 19 à 16:51:27 +0200, Jan Beich <jbeich at FreeBSD.org>
>  écrivait :
> 
> > >  LIB_DEPENDS=	libmetis.so:math/metis \
> > > +		libomp.so:devel/openmp \
> > 
> > Breaks all platforms except amd64 and i386, even Clang-based ones like
> > aarch64, armv6, armv7. See ONLY_FOR_ARCHS in devel/openmp.
> 
> Is there a way to request a compiler < C++11 and require openmp when not
> in base?
> -- 
> Th. Thomas.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20190924/43aaed26/attachment.sig>


More information about the svn-ports-head mailing list