summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-08-13 12:55:22 +0000
committerrillig <rillig@pkgsrc.org>2007-08-13 12:55:22 +0000
commitdc6a95905f95d26208033c098e58635d63579b85 (patch)
tree63bb8ef80d0d5ccb61cf77bc3cd302118c6c6d25 /devel
parenta170e8f5de995095ca726192f930ea67848de1a3 (diff)
downloadpkgsrc-dc6a95905f95d26208033c098e58635d63579b85.tar.gz
A binutils installation that doesn't even provide the basic header files
can be considered incomplete and therefore unusable.
Diffstat (limited to 'devel')
-rw-r--r--devel/binutils/builtin.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/binutils/builtin.mk b/devel/binutils/builtin.mk
index c7fc5256e9b..2367d9f06af 100644
--- a/devel/binutils/builtin.mk
+++ b/devel/binutils/builtin.mk
@@ -1,14 +1,21 @@
-# $NetBSD: builtin.mk,v 1.5 2007/05/29 12:25:03 martti Exp $
+# $NetBSD: builtin.mk,v 1.6 2007/08/13 12:55:22 rillig Exp $
+
+BINUTILS_PREFIX?= /usr
BUILTIN_PKG:= binutils
+BUILTIN_FIND_FILES_VAR := BINUTILS_FILES
+BUILTIN_FIND_FILES.BINUTILS_FILES := ${BINUTILS_PREFIX}/include/bfd.h
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
-# XXX Assume that the base OS always provides a built-in binutils.
+.if !empty(BINUTILS_FILES:N__nonexistent__)
IS_BUILTIN.binutils?= yes
+.else
+IS_BUILTIN.binutils?= no
+.endif
###
### Determine whether we should use the built-in implementation if it