aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schmidt <github@mschmidt.me>2017-07-27 12:04:18 +0200
committerMichael Schmidt <github@mschmidt.me>2017-07-27 12:04:18 +0200
commitf625def0779ee274e5ed3bca6f48684d36339706 (patch)
treeb130073af0c75265b4273f21e47c92ebe3d16e20
parentede6344f3791e406cfd3042ab5a2395d09ff16a1 (diff)
downloadcompcert-f625def0779ee274e5ed3bca6f48684d36339706.tar.gz
compcert-f625def0779ee274e5ed3bca6f48684d36339706.zip
use TMPDIR also for asm-cfi test
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 66db7d12..f54829f4 100755
--- a/configure
+++ b/configure
@@ -432,9 +432,9 @@ EOF
#
if test "$target" != "manual" && test -z "$asm_supports_cfi"; then
echo "Testing assembler support for CFI directives... " | tr -d '\n'
- f=/tmp/compcert-configure-$$.s
- rm -f $f
- cat >> $f <<EOF
+ tmpsrc="${TMPDIR:-/tmp}/compcert-configure-$$.s"
+ rm -f "$tmpsrc"
+ cat >> "$tmpsrc" <<EOF
testfun:
.file 1 "testfun.c"
.loc 1 1
@@ -442,11 +442,11 @@ testfun:
.cfi_adjust_cfa_offset 16
.cfi_endproc
EOF
- if $casm $casm_options -o /dev/null $f 2>/dev/null
+ if $casm $casm_options -o /dev/null "$tmpsrc" 2>/dev/null
then echo "yes"; asm_supports_cfi=true
else echo "no"; asm_supports_cfi=false
fi
- rm -f $f
+ rm -f "$tmpsrc"
fi