From ae681dcff3bf19c0613b8dc885bd087c9ac77143 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 24 Apr 2002 14:22:10 -0500 Subject: [svn-r5247] Purpose: Bug Fix Description: If mktemp doesn't work, then it will wipe out the value in tmpdir. Solution: Reinitialize tmpdir if this occurs. 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