From 3edcb9032bd065648de42a0256649d8883a4824b Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 24 Apr 2002 14:21:22 -0500 Subject: [svn-r5246] Purpose: Bug Fix Description: On some platforms, mktemp doesn't work. This would wipe out the tmpdir variable's value. Solution: Reinitialize tmpdir in these cases. Platforms tested: HP-UX --- bin/ltmain.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ltmain.sh b/bin/ltmain.sh index 05c61ef..1cb786c 100644 --- a/bin/ltmain.sh +++ b/bin/ltmain.sh @@ -4354,6 +4354,8 @@ relink_command=\"$relink_command\"" tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` if test $? = 0 ; then : else + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" fi if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : -- cgit v0.12