Sat Dec 3 03:42:45 2016 UTC ()
math/blas: Restore build on DragonFly

Linking blas with the gold linker fails with this error:
fatal error: --sysroot=: must take a non-empty argument

DragonFly has been using the gold linker by default for a while now.
Since I don't have time to track down this linking problem, I'm going
to restore the build on DragonFly by setting an environment variable
that forces DF to use the classic GNU linker instead.

At this point in time, I don't know if BLAS is unique or if LAPACK
and others need the same workaround.  If the latter, this variable
may need to be moved to the common LAPACK makefile.


(marino)
diff -r1.34 -r1.35 pkgsrc/math/blas/Makefile

cvs diff -r1.34 -r1.35 pkgsrc/math/blas/Makefile (expand / switch to unified diff)

--- pkgsrc/math/blas/Makefile 2016/10/18 14:08:48 1.34
+++ pkgsrc/math/blas/Makefile 2016/12/03 03:42:44 1.35
@@ -1,17 +1,23 @@ @@ -1,17 +1,23 @@
1# $NetBSD: Makefile,v 1.34 2016/10/18 14:08:48 wiz Exp $ 1# $NetBSD: Makefile,v 1.35 2016/12/03 03:42:44 marino Exp $
2 2
3.include "../../math/lapack/Makefile.common" 3.include "../../math/lapack/Makefile.common"
4 4
5PKGNAME= ${DISTNAME:S/lapack/blas/} 5PKGNAME= ${DISTNAME:S/lapack/blas/}
6 6
7COMMENT= Basic Linear Algebra Subprograms (Fortran) 7COMMENT= Basic Linear Algebra Subprograms (Fortran)
8 8
9PATCHDIR= ${.CURDIR}/../../math/lapack/patches 9PATCHDIR= ${.CURDIR}/../../math/lapack/patches
10 10
11BUILD_TARGET= blaslib 11BUILD_TARGET= blaslib
12 12
 13# blas fails using the gold linker with:
 14# fatal error: --sysroot=: must take a non-empty argument
 15# Work around it on DragonFly by specifying the classic gnu linker
 16
 17MAKE_ENV+= LDVER=ld.bfd
 18
13do-install: 19do-install:
14 ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.la \ 20 ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.la \
15 ${DESTDIR}${PREFIX}/lib 21 ${DESTDIR}${PREFIX}/lib
16 22
17.include "../../mk/bsd.pkg.mk" 23.include "../../mk/bsd.pkg.mk"