summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-04-22 22:28:19 +0000
committersnj <snj@pkgsrc.org>2004-04-22 22:28:19 +0000
commit961fd1293d5b3da6a4ffc99ff8fc2bc833aae903 (patch)
tree9624e1c9e69283ff42657550cfeed21f71e9ce88 /mk
parentb5da9b558935de0e9cab65937d0a34a5d8219348 (diff)
downloadpkgsrc-961fd1293d5b3da6a4ffc99ff8fc2bc833aae903.tar.gz
When substituting the location of a libtool archive, check to make sure
that the new one actually exists. Fixes PR pkg/25054.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink3/libtool-post-logic4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/buildlink3/libtool-post-logic b/mk/buildlink3/libtool-post-logic
index 218671aeda3..4722f4933aa 100644
--- a/mk/buildlink3/libtool-post-logic
+++ b/mk/buildlink3/libtool-post-logic
@@ -1,4 +1,4 @@
-# $NetBSD: libtool-post-logic,v 1.5 2004/04/01 21:21:13 jlam Exp $
+# $NetBSD: libtool-post-logic,v 1.6 2004/04/22 22:28:19 snj Exp $
case $arg in
#
@@ -72,7 +72,7 @@ case $arg in
ladir=`$dirname $arg`
ldir=`cd $ladir; $pwd`
buildlibdir=`. $ladir/$labase; $echo $buildlibdir`
- if $test -n "$buildlibdir" -a "$ldir" != "$buildlibdir"; then
+ if $test -n "$buildlibdir" -a "$ldir" != "$buildlibdir" -a -e "$buildlibdir/$labase"; then
arg="$buildlibdir/$labase"
$echo "*** [buildlink3] Warning: libtool replaced $ladir/$labase with $arg" >> $wrapperlog
$echo "*** [buildlink3] Warning: libtool replaced $ladir/$labase with $arg" 1>&2