diff options
author | hans <hans@pkgsrc.org> | 2011-04-14 19:31:35 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-04-14 19:31:35 +0000 |
commit | 262573961dce1c9a5368926f286d2e6fe5b973fe (patch) | |
tree | 4dd9449e80413b35b105ac486cef5440465aabdb /lang/gcc44/Makefile | |
parent | 82c6bc45457278795cd6868689d2e0401aa3746c (diff) | |
download | pkgsrc-262573961dce1c9a5368926f286d2e6fe5b973fe.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/gcc44/Makefile')
-rw-r--r-- | lang/gcc44/Makefile | 11 |
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 \ |