summaryrefslogtreecommitdiff
path: root/mk/tools/ldconfig.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-24 20:40:53 +0000
committerjlam <jlam>2005-06-24 20:40:53 +0000
commit79fe370d8ba581b962db0277a135c2235b7dc46b (patch)
tree559650fc67518e949b2814b9f44182e496838795 /mk/tools/ldconfig.mk
parentbebb4d21fbe39735e042a10578f533621b8e1da9 (diff)
downloadpkgsrc-79fe370d8ba581b962db0277a135c2235b7dc46b.tar.gz
Create TOOLS_LDCONFIG and LDCONFIG variables that contain the actual
command that can be embedded into packages. Calling a bare "ldconfig" will still call the one in the tools directory, which always does the right thing.
Diffstat (limited to 'mk/tools/ldconfig.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}