summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-04-30 12:44:39 +0000
committerwiz <wiz@pkgsrc.org>2002-04-30 12:44:39 +0000
commitabc969db6af84a74449a65c76799d658f2ada576 (patch)
treedf3e4b1b2ac558c1a69dbfdbd29f8b7ad94d2891 /devel
parent8152c94380b9111d456637eda3f1c75e6bb4b0b3 (diff)
downloadpkgsrc-abc969db6af84a74449a65c76799d658f2ada576.tar.gz
Since I already have the code to check if it's needed, use it do
en- or disable the dependency, too. Oops.
Diffstat (limited to 'devel')
-rw-r--r--devel/binutils/buildlink.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/binutils/buildlink.mk b/devel/binutils/buildlink.mk
index 5a0dfa34873..48c944db69e 100644
--- a/devel/binutils/buildlink.mk
+++ b/devel/binutils/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.1.1.1 2002/04/30 12:33:29 wiz Exp $
+# $NetBSD: buildlink.mk,v 1.2 2002/04/30 12:44:39 wiz Exp $
#
# This Makefile fragment is included by packages that use binutils.
#
@@ -31,6 +31,7 @@ _NEED_BINUTILS= YES
# XXX: logic for other operating systems needed here
.endif
+.if ${_NEED_BINUTILS} == "YES"
BUILDLINK_DEPENDS.binutils?= binutils>=2.11.2
DEPENDS+= ${BUILDLINK_DEPENDS.binutils}:../../devel/binutils
@@ -65,5 +66,6 @@ PATH:= ${BUILDLINK_DIR}/bin:${PATH}
pre-configure: ${BUILDLINK_TARGETS}
binutils-buildlink: _BUILDLINK_USE
+.endif # _NEED_BINUTILS
.endif # BINUTILS_BUILDLINK_MK