summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-06-17 06:18:28 +0000
committergrant <grant@pkgsrc.org>2003-06-17 06:18:28 +0000
commitb015e18fd1ea754e48dd73eea58f5813f5139686 (patch)
tree0a2d0e35f931985bb59f8ded01daedfe89e02154
parent2aac24d780eb59fb9b967bce36e9137fad60899a (diff)
downloadpkgsrc-b015e18fd1ea754e48dd73eea58f5813f5139686.tar.gz
only do the USE_BINUTILS tests if we're on NetBSD.
unbreaks this on Solaris and other non-GNU binutils platforms.
-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"