mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
configure: add logging
Write compile commands and messages to config.log. Useful for debugging configure.
This commit is contained in:
parent
d6d94fc327
commit
da1d85e339
7
configure
vendored
7
configure
vendored
@ -16,15 +16,18 @@ TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
|
|||||||
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe"
|
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe"
|
||||||
|
|
||||||
trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM
|
trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM
|
||||||
|
rm -f config.log
|
||||||
|
|
||||||
compile_object() {
|
compile_object() {
|
||||||
$cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
|
echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log
|
||||||
|
$cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
compile_prog() {
|
compile_prog() {
|
||||||
local_cflags="$1"
|
local_cflags="$1"
|
||||||
local_ldflags="$2"
|
local_ldflags="$2"
|
||||||
$cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags > /dev/null 2> /dev/null
|
echo $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log
|
||||||
|
$cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
# check whether a command is available to this shell (may be either an
|
# check whether a command is available to this shell (may be either an
|
||||||
|
Loading…
Reference in New Issue
Block a user