summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2016-12-03 15:37:34 +0000
committermarino <marino@pkgsrc.org>2016-12-03 15:37:34 +0000
commit81c372d86a5d1304cca934674cd91080a98057a5 (patch)
treee9d319ddb390ff644075addbc150f083145e24b8 /math
parent163b03d46026e7f5916fe6a9446f42eff5c6e21a (diff)
downloadpkgsrc-81c372d86a5d1304cca934674cd91080a98057a5.tar.gz
math/lapack: Restore build on DragonFly
Linking lapack 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. This was already fixed on math/blas which uses the lapack common makefile, so just relocate the fix to lapack.
Diffstat (limited to 'math')
-rw-r--r--math/blas/Makefile8
-rw-r--r--math/lapack/Makefile.common8
2 files changed, 8 insertions, 8 deletions
diff --git a/math/blas/Makefile b/math/blas/Makefile
index 45caf624b9a..aca0869db2f 100644
--- a/math/blas/Makefile
+++ b/math/blas/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2016/12/03 03:42:44 marino Exp $
+# $NetBSD: Makefile,v 1.36 2016/12/03 15:37:34 marino Exp $
.include "../../math/lapack/Makefile.common"
@@ -10,12 +10,6 @@ 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
diff --git a/math/lapack/Makefile.common b/math/lapack/Makefile.common
index d96126c70cc..d06f714e095 100644
--- a/math/lapack/Makefile.common
+++ b/math/lapack/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2016/10/18 14:08:14 wiz Exp $
+# $NetBSD: Makefile.common,v 1.4 2016/12/03 15:37:34 marino Exp $
# used by math/blas/Makefile
# used by math/lapack/Makefile
@@ -18,3 +18,9 @@ DISTINFO_FILE= ${.CURDIR}/../../math/lapack/distinfo
PATCHDIR= ${.CURDIR}/../../math/lapack/patches
INSTALLATION_DIRS= lib
+
+# 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