Use mktemp to generate temp files.

Fix the $RANDOM bashism properly by using mktemp.
mktemp is part of MSYS so this should work on UNIXes and Windows
master
Thomas Preud'homme 2010-06-22 18:40:35 +02:00
parent 9775aea1ab
commit 27988c5e66
1 changed files with 1 additions and 2 deletions

3
configure vendored
View File

@ -11,8 +11,7 @@ else
TMPDIR1="/tmp"
fi
# bashism: TMPN="${TMPDIR1}/tcc-conf-${RANDOM}-$$-${RANDOM}.c"
TMPN="./conftest-$$"
TMPN="$(mktemp --tmpdir=${TMPDIR1} tcc-conf-XXXXXXXXXX-$$-XXXXXXXXXX)"
TMPC=$TMPN.c
TMPH=$TMPN.h