diff options
author | jlam <jlam> | 2005-05-10 20:14:27 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-05-10 20:14:27 +0000 |
commit | 6da212016f731f42edcc166bad9c7d898acd75c9 (patch) | |
tree | 1216a54629ed5a7cf8ddf7f5d687f220391a481d /mk/tools/ldconfig.mk | |
parent | 9f9a1788d7390512b5fbb8bdbf684e46149e5ab7 (diff) | |
download | pkgsrc-6da212016f731f42edcc166bad9c7d898acd75c9.tar.gz |
Split out ldconfig handling from the USE_TOOLS processing in replace.mk.
This makes more sense since there is never going to be a pkgsrc
replacement for ldconfig. We now always create an ldconfig tool in
${TOOLS_DIR} that either calls the system-supplied one if it exists,
or is a no-op.
Diffstat (limited to 'mk/tools/ldconfig.mk')
-rw-r--r-- | mk/tools/ldconfig.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/tools/ldconfig.mk b/mk/tools/ldconfig.mk new file mode 100644 index 00000000000..061c785d3f0 --- /dev/null +++ b/mk/tools/ldconfig.mk @@ -0,0 +1,17 @@ +# $NetBSD: ldconfig.mk,v 1.1 2005/05/10 20:14:27 jlam Exp $ +# +# Depending on whether the platform has ldconfig, we cause +# ${TOOLS_DIR}/bin/ldconfig to be either the correct ldconfig tool or +# a no-op. +# +.if !defined(TOOLS_PLATFORM.ldconfig) +TOOLS_NOOP+= ldconfig +.else +TOOLS_CREATE+= ldconfig +TOOLS_REAL_CMD.ldconfig= ${TOOLS_PLATFORM.ldconfig} +.endif + +# Make ${LDCONFIG} call "ldconfig" through the PATH, which should find +# the one under ${TOOLS_DIR}. +# +LDCONFIG?= ldconfig |