Fixed two scripts so that they also run when "set -u" is in effect.

This commit is contained in:
rillig 2006-11-09 02:07:59 +00:00
parent 7235ba2317
commit 9855d392a6
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: libtool-fix-la,v 1.7 2005/12/09 16:16:41 hira Exp $
# $NetBSD: libtool-fix-la,v 1.8 2006/11/09 02:07:59 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@ -131,6 +131,7 @@ if $test -f $lafile; then
esac
done
: ${relink_command=""}
relink=
for i in ${relink_command}; do
case $i in

View file

@ -1,4 +1,4 @@
# $NetBSD: transform-libtool,v 1.2 2004/10/03 21:39:07 jlam Exp $
# $NetBSD: transform-libtool,v 1.3 2006/11/09 02:07:59 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@ -83,7 +83,7 @@ case $arg in
la="$dir/lib$lib.la"
if $test -f "$la"; then
ldir=`cd $dir; $pwd`
buildlibdir=`. $la; $echo $buildlibdir`
buildlibdir=`. $la; $echo ${buildlibdir-}`
if $test -n "$buildlibdir" -a \
"$ldir" != "$buildlibdir"; then
la="$buildlibdir/lib$lib.la"
@ -107,7 +107,7 @@ case $arg in
labase=`$basename $arg`
ladir=`$dirname $arg`
ldir=`cd $ladir; $pwd`
buildlibdir=`. $ladir/$labase; $echo $buildlibdir`
buildlibdir=`. $ladir/$labase; $echo ${buildlibdir-}`
if $test -n "$buildlibdir" -a "$ldir" != "$buildlibdir" -a \
-e "$buildlibdir/$labase"; then
arg="$buildlibdir/$labase"