summaryrefslogtreecommitdiff
path: root/math/lapack
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
commitacbb6f6cda8109e6de367d4a282da00b5e8d5b8a (patch)
treef9d59f054c9470ec07e473564355088dc28497cb /math/lapack
parent30e51d091632648dea0dc44cea639b455aa329df (diff)
downloadpkgsrc-acbb6f6cda8109e6de367d4a282da00b5e8d5b8a.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/lapack')
-rw-r--r--math/lapack/Makefile.common8
1 files changed, 7 insertions, 1 deletions
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