pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/g95 g95: fix build on linux
details: https://anonhg.NetBSD.org/pkgsrc/rev/b4b777195522
branches: trunk
changeset: 370523:b4b777195522
user: maya <maya%pkgsrc.org@localhost>
date: Wed Oct 18 09:38:23 2017 +0000
description:
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:
lang/g95/Makefile | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 398875666894 -r b4b777195522 lang/g95/Makefile
--- a/lang/g95/Makefile Wed Oct 18 08:30:30 2017 +0000
+++ b/lang/g95/Makefile Wed Oct 18 09:38:23 2017 +0000
@@ -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 @@
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 @@
. else
GCC_CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas
. endif
-.elif ${OPSYS} == "Linux"
-USE_TOOLS+= perl:build
.endif
post-extract:
Home |
Main Index |
Thread Index |
Old Index