pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/blas math/blas: Restore build on DragonFly
details: https://anonhg.NetBSD.org/pkgsrc/rev/fedb9bdcc6d0
branches: trunk
changeset: 355469:fedb9bdcc6d0
user: marino <marino%pkgsrc.org@localhost>
date: Sat Dec 03 03:42:44 2016 +0000
description:
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:
math/blas/Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r eba1dd19f05c -r fedb9bdcc6d0 math/blas/Makefile
--- a/math/blas/Makefile Sat Dec 03 03:32:35 2016 +0000
+++ b/math/blas/Makefile Sat Dec 03 03:42:44 2016 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index