summaryrefslogtreecommitdiff
path: root/lang/g95
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-03-20 17:26:19 +0000
committerhans <hans@pkgsrc.org>2012-03-20 17:26:19 +0000
commitb9cdf0713870006ee4f198ff99f76a2b703093d7 (patch)
treecbda15ae0a15c8e1fa6b031498e429545c8f343a /lang/g95
parent66249880913ce39e5abb0fa08e20fc7055d8991f (diff)
downloadpkgsrc-b9cdf0713870006ee4f198ff99f76a2b703093d7.tar.gz
Make sure that the gcc used for building g95 knows which ld/as/objdump
to use on SunOS (same as in lang/gcc46). Add PLIST.SunOS.
Diffstat (limited to 'lang/g95')
-rw-r--r--lang/g95/Makefile13
-rw-r--r--lang/g95/PLIST.SunOS4
2 files changed, 16 insertions, 1 deletions
diff --git a/lang/g95/Makefile b/lang/g95/Makefile
index 413ed9eadb9..8124b969d9d 100644
--- a/lang/g95/Makefile
+++ b/lang/g95/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/01/23 09:42:10 markd Exp $
+# $NetBSD: Makefile,v 1.9 2012/03/20 17:26:19 hans Exp $
DISTNAME= g95_source
VERSION= 0.92
@@ -28,6 +28,17 @@ GCC_CONFIGURE_SCRIPT= ../configure
GCC_CONFIGURE_ARGS= ${CONFIGURE_ARGS}
GCC_CONFIGURE_ARGS+= --enable-languages=c
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+GCC_CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump
+GCC_CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld
+. if !exists(/usr/sfw/bin/gas)
+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
+.endif
+
CONFIGURE_ARGS+= --with-gcc-dir=${GCC_DIR}
post-extract:
diff --git a/lang/g95/PLIST.SunOS b/lang/g95/PLIST.SunOS
new file mode 100644
index 00000000000..0d143879f9c
--- /dev/null
+++ b/lang/g95/PLIST.SunOS
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST.SunOS,v 1.1 2012/03/20 17:26:19 hans Exp $
+lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtbegin.o
+lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/crtend.o
+lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/gmon.o