1 diff --git a/minic/mcc b/minic/mcc
2 index 492947e..5258aac 100755
9 -$DIR/minic < $file > /tmp/minic.ssa &&
10 -$QBE < /tmp/minic.ssa > /tmp/minic.s &&
11 -cc /tmp/minic.s $flags
12 +$DIR/minic < $file > ${TMPDIR:-/tmp}/minic.ssa &&
13 +$QBE < ${TMPDIR:-/tmp}/minic.ssa > ${TMPDIR:-/tmp}/minic.s &&
14 +cc ${TMPDIR:-/tmp}/minic.s $flags
18 diff --git a/tools/cra.sh b/tools/cra.sh
19 index 5988267..57a4b34 100755
24 DIR=`cd $(dirname "$0"); pwd`
27 +BUGF=${TMPDIR:-/tmp}/bug.id
29 FIND=${FIND:-afl-find}
31 diff --git a/tools/test.sh b/tools/test.sh
32 index 23c6663..fb36222 100755
35 @@ -4,7 +4,7 @@ dir=`dirname "$0"`
37 binref=$dir/../qbe.ref
40 +tmp=${TMPDIR:-/tmp}/qbe.zzzz