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.diff -r1.35 -r1.36 pkgsrc/math/blas/Makefile
(marino)
@@ -1,23 +1,17 @@ | @@ -1,23 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.35 2016/12/03 03:42:44 marino Exp $ | 1 | # $NetBSD: Makefile,v 1.36 2016/12/03 15:37:34 marino Exp $ | |
2 | 2 | |||
3 | .include "../../math/lapack/Makefile.common" | 3 | .include "../../math/lapack/Makefile.common" | |
4 | 4 | |||
5 | PKGNAME= ${DISTNAME:S/lapack/blas/} | 5 | PKGNAME= ${DISTNAME:S/lapack/blas/} | |
6 | 6 | |||
7 | COMMENT= Basic Linear Algebra Subprograms (Fortran) | 7 | COMMENT= Basic Linear Algebra Subprograms (Fortran) | |
8 | 8 | |||
9 | PATCHDIR= ${.CURDIR}/../../math/lapack/patches | 9 | PATCHDIR= ${.CURDIR}/../../math/lapack/patches | |
10 | 10 | |||
11 | BUILD_TARGET= blaslib | 11 | BUILD_TARGET= blaslib | |
12 | 12 | |||
13 | # blas fails using the gold linker with: | |||
14 | # fatal error: --sysroot=: must take a non-empty argument | |||
15 | # Work around it on DragonFly by specifying the classic gnu linker | |||
16 | ||||
17 | MAKE_ENV+= LDVER=ld.bfd | |||
18 | ||||
19 | do-install: | 13 | do-install: | |
20 | ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.la \ | 14 | ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/BLAS/SRC/libblas.la \ | |
21 | ${DESTDIR}${PREFIX}/lib | 15 | ${DESTDIR}${PREFIX}/lib | |
22 | 16 | |||
23 | .include "../../mk/bsd.pkg.mk" | 17 | .include "../../mk/bsd.pkg.mk" |
@@ -1,20 +1,26 @@ | @@ -1,20 +1,26 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.3 2016/10/18 14:08:14 wiz Exp $ | 1 | # $NetBSD: Makefile.common,v 1.4 2016/12/03 15:37:34 marino Exp $ | |
2 | # used by math/blas/Makefile | 2 | # used by math/blas/Makefile | |
3 | # used by math/lapack/Makefile | 3 | # used by math/lapack/Makefile | |
4 | 4 | |||
5 | DISTNAME= lapack-3.6.1 | 5 | DISTNAME= lapack-3.6.1 | |
6 | CATEGORIES= math | 6 | CATEGORIES= math | |
7 | MASTER_SITES= ${MASTER_SITE_NETLIB:=lapack/} | 7 | MASTER_SITES= ${MASTER_SITE_NETLIB:=lapack/} | |
8 | EXTRACT_SUFX= .tgz | 8 | EXTRACT_SUFX= .tgz | |
9 | 9 | |||
10 | MAINTAINER= adam@NetBSD.org | 10 | MAINTAINER= adam@NetBSD.org | |
11 | HOMEPAGE= http://www.netlib.org/lapack/ | 11 | HOMEPAGE= http://www.netlib.org/lapack/ | |
12 | LICENSE= modified-bsd | 12 | LICENSE= modified-bsd | |
13 | 13 | |||
14 | USE_LANGUAGES= c fortran | 14 | USE_LANGUAGES= c fortran | |
15 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
16 | 16 | |||
17 | DISTINFO_FILE= ${.CURDIR}/../../math/lapack/distinfo | 17 | DISTINFO_FILE= ${.CURDIR}/../../math/lapack/distinfo | |
18 | PATCHDIR= ${.CURDIR}/../../math/lapack/patches | 18 | PATCHDIR= ${.CURDIR}/../../math/lapack/patches | |
19 | 19 | |||
20 | INSTALLATION_DIRS= lib | 20 | INSTALLATION_DIRS= lib | |
21 | ||||
22 | # blas fails using the gold linker with: | |||
23 | # fatal error: --sysroot=: must take a non-empty argument | |||
24 | # Work around it on DragonFly by specifying the classic gnu linker | |||
25 | ||||
26 | MAKE_ENV+= LDVER=ld.bfd |