diff options
author | jlam <jlam@pkgsrc.org> | 2005-06-24 20:40:53 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-06-24 20:40:53 +0000 |
commit | 237d39908a0c41b8d5a1b591b5609b8650a75971 (patch) | |
tree | 559650fc67518e949b2814b9f44182e496838795 /mk | |
parent | 9f8a48598a0707c9bd1dd507f669dacb767a02ad (diff) | |
download | pkgsrc-237d39908a0c41b8d5a1b591b5609b8650a75971.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')
-rw-r--r-- | mk/tools/ldconfig.mk | 12 |
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} |