pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math math/lapack: Restore build on DragonFly



details:   https://anonhg.NetBSD.org/pkgsrc/rev/373c1a8d9280
branches:  trunk
changeset: 355489:373c1a8d9280
user:      marino <marino%pkgsrc.org@localhost>
date:      Sat Dec 03 15:37:34 2016 +0000

description:
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:

 math/blas/Makefile          |  8 +-------
 math/lapack/Makefile.common |  8 +++++++-
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (41 lines):

diff -r 908b0ef548e3 -r 373c1a8d9280 math/blas/Makefile
--- a/math/blas/Makefile        Sat Dec 03 14:54:01 2016 +0000
+++ b/math/blas/Makefile        Sat Dec 03 15:37:34 2016 +0000
@@ -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 @@
 
 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 -r 908b0ef548e3 -r 373c1a8d9280 math/lapack/Makefile.common
--- a/math/lapack/Makefile.common       Sat Dec 03 14:54:01 2016 +0000
+++ b/math/lapack/Makefile.common       Sat Dec 03 15:37:34 2016 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index