summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-04-14 19:31:35 +0000
committerhans <hans@pkgsrc.org>2011-04-14 19:31:35 +0000
commita0057b24575a4e6afad128b14f7d8abc80489d56 (patch)
tree4dd9449e80413b35b105ac486cef5440465aabdb /lang
parente7b91f3ddaa9578f947038fea889b657b4891357 (diff)
downloadpkgsrc-a0057b24575a4e6afad128b14f7d8abc80489d56.tar.gz
On SunOS, always use the Sun linker, but only use the Sun assembler if
the GNU assembler cannot be found.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc44/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index becdbfea2ea..d650a6ee324 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2011/03/16 17:48:22 hans Exp $
+# $NetBSD: Makefile,v 1.18 2011/04/14 19:31:35 hans Exp $
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc44-${GCC_VERSION}
@@ -39,6 +39,15 @@ UNLIMIT_RESOURCES+= stacksize
.include "options.mk"
# Determine whether to use binutils
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld
+. if !exists(/usr/bin/gas)
+CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/bin/as
+. else
+CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/bin/gas
+.endif
+.endif
+
# REPLACE_AWK+= gcc/testsuite/gcc.test-framework/test-framework.awk \
# gcc/mkmap-symver.awk \