summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/ldconfig.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/tools/ldconfig.mk b/mk/tools/ldconfig.mk
index 3d278a082d3..707ac25a864 100644
--- a/mk/tools/ldconfig.mk
+++ b/mk/tools/ldconfig.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ldconfig.mk,v 1.3 2005/05/21 04:53:17 jlam Exp $
+# $NetBSD: ldconfig.mk,v 1.4 2005/06/24 20:40:53 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -40,14 +40,16 @@
# ${TOOLS_DIR}/bin/ldconfig to be either the correct ldconfig tool or
# a no-op.
#
+# Create TOOLS_LDCONFIG and LDCONFIG variables that point to the actual
+# commands that can be embedded into packages.
+#
.if !defined(TOOLS_PLATFORM.ldconfig)
TOOLS_NOOP+= ldconfig
+TOOLS_LDCONFIG?= ${TRUE}
.else
TOOLS_CREATE+= ldconfig
TOOLS_REAL_CMD.ldconfig= ${TOOLS_PLATFORM.ldconfig}
+TOOLS_LDCONFIG?= ${TOOLS_REAL_CMD.ldconfig}
.endif
-# Make ${LDCONFIG} call "ldconfig" through the PATH, which should find
-# the one under ${TOOLS_DIR}.
-#
-LDCONFIG?= ldconfig
+LDCONFIG?= ${TOOLS_LDCONFIG}