diff options
author | maya <maya@pkgsrc.org> | 2017-10-18 09:38:23 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2017-10-18 09:38:23 +0000 |
commit | 75b26c7a9cbd1e9e6218ea3118946faaa84c7247 (patch) | |
tree | 97e771a5a9974c8615fa5863bd2823e5342102bf /lang | |
parent | d8aa41deccb9b258eb9fdd8d7c6d440899bccfa2 (diff) | |
download | pkgsrc-75b26c7a9cbd1e9e6218ea3118946faaa84c7247.tar.gz |
g95: fix build on linux
force passing asprintf test which is incorrectly not found due to FORTIFY
pass LIBRARY_PATH so crtn.o and crti.o are found on Ubuntu & friends
Note many reporters need to install g++-multilib as a package to overcome
the errors they reported in the bugs (missing <sys/cdefs.h>)
PR pkg/51198, PR pkg/51690, PR pkg/52116
Diffstat (limited to 'lang')
-rw-r--r-- | lang/g95/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lang/g95/Makefile b/lang/g95/Makefile index 21426febed6..53141754212 100644 --- a/lang/g95/Makefile +++ b/lang/g95/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2017/06/21 01:12:56 maya Exp $ +# $NetBSD: Makefile,v 1.29 2017/10/18 09:38:23 maya Exp $ DISTNAME= g95_source PKGNAME= g95-0.93 @@ -34,6 +34,15 @@ GCC_CONFIGURE_ARGS+= --disable-libssp # to build on NetBSD 6.99.43 LDFLAGS.Darwin+= -Wl,-read_only_relocs,suppress .include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Linux" +. if exists(/usr/lib/${MACHINE_ARCH}-linux-gnu) +MAKE_ENV+= LIBRARY_PATH=/usr/lib/${MACHINE_ARCH}-linux-gnu +. endif +MAKE_ENV+= ac_cv_have_decl_asprintf=yes +USE_TOOLS+= perl:build +.endif + .if ${OPSYS} == "SunOS" GCC_CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump GCC_CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld @@ -42,8 +51,6 @@ GCC_CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as . else GCC_CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas . endif -.elif ${OPSYS} == "Linux" -USE_TOOLS+= perl:build .endif post-extract: |