summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorgrant <grant>2003-06-17 06:18:28 +0000
committergrant <grant>2003-06-17 06:18:28 +0000
commit24254f157bbdba435db1d6369f217fea153c6ce0 (patch)
tree0a2d0e35f931985bb59f8ded01daedfe89e02154 /lang/gcc3
parent9fba3e23d16ad4a60e5c92a7b0da3f2ad6e767df (diff)
downloadpkgsrc-24254f157bbdba435db1d6369f217fea153c6ce0.tar.gz
only do the USE_BINUTILS tests if we're on NetBSD.
unbreaks this on Solaris and other non-GNU binutils platforms.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index d9a03168eca..1ce4fccfaee 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2003/06/11 18:20:23 fredb Exp $
+# $NetBSD: Makefile,v 1.22 2003/06/17 06:18:28 grant Exp $
#
DISTNAME= gcc-3.3
@@ -36,7 +36,7 @@ INFO_FILES= cpp.info g77.info gcc.info gcj.info
.include "../../mk/bsd.prefs.mk"
-.ifndef USE_BINUTILS
+.if ${OPSYS} == "NetBSD" && !defined(USE_BINUTILS)
AS_VERSION!= ${AS} --version | ${AWK} '{ \
split($$3, v, /[.]/); \
printf "%02d%02d%02d%02d\n",v[1],v[2],v[3],v[4]; \
@@ -45,7 +45,7 @@ AS_VERSION!= ${AS} --version | ${AWK} '{ \
USE_BINUTILS!= ${TEST} ${AS_VERSION} -lt 02130201 && echo YES || echo NO
.endif
-.if ${USE_BINUTILS} == YES
+.if defined(USE_BINUTILS) && ${USE_BINUTILS} == "YES"
DEPENDS= binutils>=2.13.2.1:../../devel/binutils
CONFIGURE_ARGS+= --with-as=${PREFIX}/${MACHINE_GNU_PLATFORM}/bin/as
#. include "../../devel/binutils/buildlink2.mk"