pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2017Q3]: pkgsrc/lang/g95 Pullup ticket #5583 - requested by maya



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5a3c4a1e86b
branches:  pkgsrc-2017Q3
changeset: 408541:f5a3c4a1e86b
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Thu Oct 19 17:56:46 2017 +0000

description:
Pullup ticket #5583 - requested by maya
lang/g95: Linux build fix

Revisions pulled up:
- lang/g95/Makefile                                             1.29

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Wed Oct 18 09:38:23 UTC 2017

   Modified Files:
           pkgsrc/lang/g95: Makefile

   Log Message:
   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 b0da654b887d -r f5a3c4a1e86b lang/g95/Makefile
--- a/lang/g95/Makefile Thu Oct 19 17:54:34 2017 +0000
+++ b/lang/g95/Makefile Thu Oct 19 17:56:46 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2017/06/21 01:12:56 maya Exp $
+# $NetBSD: Makefile,v 1.28.6.1 2017/10/19 17:56:46 bsiegert 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