diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-10 20:14:27 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-10 20:14:27 +0000 |
commit | fb1593ba8b8462ec9435ac25d256bf3c310a1f46 (patch) | |
tree | 1216a54629ed5a7cf8ddf7f5d687f220391a481d /mk/tools/ldconfig.mk | |
parent | ef1665c54fda9fd94ea460903a4a8c9ba4b3e90a (diff) | |
download | pkgsrc-fb1593ba8b8462ec9435ac25d256bf3c310a1f46.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 |