summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2000-08-01 12:00:48 +0000
committerjlam <jlam>2000-08-01 12:00:48 +0000
commit0af4560b9e8c34ca9d099f0773adb29523be99d6 (patch)
tree4bcbe7f1557e8f60650d2f21f2a621d1d9b5a4b7 /mk
parentdc53cf0436f7602b157fc6e9241c602453ea0801 (diff)
downloadpkgsrc-0af4560b9e8c34ca9d099f0773adb29523be99d6.tar.gz
In LTCONFIG_OVERRIDE code, remove the old ltconfig file before writing
our own in it's place. This avoids the problem of if the old ltconfig file is a symbolic link to somewhere else in the filesystem.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index e3c406730b2..c4dbb6b88a1 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.532 2000/08/01 02:51:34 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.533 2000/08/01 12:00:48 jlam Exp $
#
# This file is in the public domain.
#
@@ -1373,6 +1373,7 @@ do-configure:
.if (defined(USE_LIBTOOL) || defined(USE_PKGLIBTOOL)) && defined(LTCONFIG_OVERRIDE) && !defined(LIBTOOL_OVERRIDE)
.for ltconfig in ${LTCONFIG_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG}if [ -f ${ltconfig} ]; then \
+ ${RM} -f ${ltconfig}; \
${ECHO} "${RM} -f libtool; ${LN} -s ${LIBTOOL} libtool" \
> ${ltconfig}; \
fi