fb1593ba8b
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.
17 lines
481 B
Makefile
17 lines
481 B
Makefile
# $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
|