qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 1/7] configure: add logging


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 1/7] configure: add logging
Date: Tue, 15 Jun 2010 15:39:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4

On 06/15/2010 02:23 PM, Gerd Hoffmann wrote:
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 c0d8aa5..8220226 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

Acked-by: Paolo Bonzini <address@hidden>

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]