summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-04-01 21:21:13 +0000
committerjlam <jlam@pkgsrc.org>2004-04-01 21:21:13 +0000
commitc7be0d97cf2637cd52ed054d3cb6a9c99ea1cb5f (patch)
tree208ee30b69eb88e8f55c1e09ce1f546348419f33 /mk
parent4463323773b6736b07c9aa75e9bc413cf9bdc3c5 (diff)
downloadpkgsrc-c7be0d97cf2637cd52ed054d3cb6a9c99ea1cb5f.tar.gz
Be robust against the possibility that buildlibdir isn't defined.
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 73501e41e54..218671aeda3 100644
--- a/mk/buildlink3/libtool-post-logic
+++ b/mk/buildlink3/libtool-post-logic
@@ -1,4 +1,4 @@
-# $NetBSD: libtool-post-logic,v 1.4 2004/03/30 17:25:19 jlam Exp $
+# $NetBSD: libtool-post-logic,v 1.5 2004/04/01 21:21:13 jlam 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 "$ldir" != "$buildlibdir"; then
+ if $test -n "$buildlibdir" -a "$ldir" != "$buildlibdir"; 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