math/cmlib port - PR submitted, want to discuss

Thierry Thomas thierry at FreeBSD.org
Sun Jan 4 14:12:00 UTC 2015


Le jeu 25 déc 14 à 23:21:56 +0100, Steve Kargl <sgk at troutmask.apl.washington.edu>
 écrivait :

[Sorry for the delay]

> The original authors of the blas and lapack are the individuals
> who wrote and maintain the netlib implementations.  "trending"
> lib suggests to me new code with bugs.  The netlib libraries are
> well-known and have been debugged for years.  The netlib libraries
> are also quite portable.

OK, I'll change it.

> > I'm not sure about a symlink: would'nt it imply conflicts between
> > these different ports? How do you see it?
> 
> My only concern is if I do
> 
> gfortran -o myprog myprog.f90 -L/usr/local/lib -llapack -lblas
> 
> I get myprog.  If openblas or gotoblas or atlas is installed in
> preference to the netlib libraries, I would like the above to
> magically work.  But, I suppose that this is just me.

If "myprog" uses the ports framework (including the ports Makefiles), it
will be possible to write something like:

$FC -o myprog myprog.f90 -L${LOCALBASE}/lib $LAPACKLIB $BLASLIB
and pick the default ones.

But if you develop your programs out of the ports mechanism, nothing
will change.

Regards,
-- 
Th. Thomas.


More information about the freebsd-fortran mailing list