[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 04/10] configure: add logging
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v4 04/10] configure: add logging |
Date: |
Fri, 27 Aug 2010 11:59:53 +0200 |
Write compile commands and messages to config.log.
Useful for debugging configure.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
configure | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 146dac0..0639b33 100755
--- a/configure
+++ b/configure
@@ -16,15 +16,18 @@ TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe"
trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM
+rm -f config.log
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() {
local_cflags="$1"
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
--
1.7.1
- [Qemu-devel] [PATCH v4 05/10] add spice into the configure file, (continued)
- [Qemu-devel] [PATCH v4 05/10] add spice into the configure file, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 02/10] Use machine_init() to register virtfs config options., Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 01/10] Use display types for local display only., Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 03/10] add pflib: PixelFormat conversion library., Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 08/10] spice: add mouse, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 07/10] spice: add keyboard, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 06/10] spice: core bits, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 10/10] spice: add tablet support, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 09/10] spice: simple display, Gerd Hoffmann, 2010/08/27
- [Qemu-devel] [PATCH v4 04/10] configure: add logging,
Gerd Hoffmann <=
- Re: [Qemu-devel] [PATCH v4 00/10] initial spice support., Blue Swirl, 2010/08/28