summaryrefslogtreecommitdiffstats
path: root/bin/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ltmain.sh')
-rw-r--r--bin/ltmain.sh2
1 files changed, 2 insertions, 0 deletions
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 :