summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-09 01:52:14 +0000
committerjlam <jlam>2004-02-09 01:52:14 +0000
commitc4496f2c38c07f01c2eb762526b70333b845e21f (patch)
tree54afbe0405993d6c0140fd23669682cdc3747223 /mk
parent65bbcffc5b01c4183dfd6ba0bb6c478ecb1fdead (diff)
downloadpkgsrc-c4496f2c38c07f01c2eb762526b70333b845e21f.tar.gz
Also turn shlibtool into a shell script instead of a symlink. This
duplicates the change made in rev. 1.1368 for libtool.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 31e415dad38..49779544191 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1381 2004/02/09 01:30:59 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1382 2004/02/09 01:52:14 jlam Exp $
#
# This file is in the public domain.
#
@@ -2407,8 +2407,13 @@ do-libtool-override:
. for libtool in ${SHLIBTOOL_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${libtool} ]; then \
- ${RM} -f ${libtool}; \
- ${LN} -sf ${_SHLIBTOOL} ${libtool}; \
+ (${ECHO} '#!${CONFIG_SHELL}'; \
+ ${ECHO} 'exec ${_SHLIBTOOL} "$$@"'; \
+ ) > ${libtool}.override; \
+ if [ -x ${libtool} ]; then \
+ ${CHMOD} +x ${libtool}.override; \
+ fi; \
+ ${MV} -f ${libtool}.override ${libtool}; \
fi
. endfor
. endif