diff options
author | marino <marino@pkgsrc.org> | 2016-12-03 03:42:44 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2016-12-03 03:42:44 +0000 |
commit | 4cee9d08a575e9f8e5275e51a0279da64d3f4bf5 (patch) | |
tree | 8bb2b9b7db4d284aa07f2f47ca6a66edec8d064f /math/blas | |
parent | a1cf6265f6e995828ad49e31ec04c4b69f0e2f56 (diff) | |
download | pkgsrc-4cee9d08a575e9f8e5275e51a0279da64d3f4bf5.tar.gz |
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.
Diffstat (limited to 'math/blas')
-rw-r--r-- | math/blas/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/math/blas/Makefile b/math/blas/Makefile index 2b0c8359584..45caf624b9a 100644 --- a/math/blas/Makefile +++ b/math/blas/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2016/10/18 14:08:48 wiz Exp $ +# $NetBSD: Makefile,v 1.35 2016/12/03 03:42:44 marino Exp $ .include "../../math/lapack/Makefile.common" @@ -10,6 +10,12 @@ PATCHDIR= ${.CURDIR}/../../math/lapack/patches BUILD_TARGET= blaslib +# blas fails using the gold linker with: +# fatal error: --sysroot=: must take a non-empty argument +# Work around it on DragonFly by specifying the classic gnu linker + +MAKE_ENV+= LDVER=ld.bfd + do-install: ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.la \ ${DESTDIR}${PREFIX}/lib |