[Top][All Lists]

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

[Qemu-devel] [PATCH] Makefile: fix that qemu doesn't compile with qemu-g

From: wudxw
Subject: [Qemu-devel] [PATCH] Makefile: fix that qemu doesn't compile with qemu-ga and simpletrace configured.
Date: Thu, 1 Sep 2011 13:56:23 +0800

From: Mark Wu <address@hidden>

Without this fix, it will not compile when simpletrace is configured:
$ ./configure --enable-trace-backend=simple
$ make
  GEN   config-host.h
  GEN   trace.h
  CC    qemu-ga.o
  GEN   trace.c
  LINK  qemu-ga
simpletrace.o: In function `get_clock':
$qemu_src/qemu-timer.h:122: undefined reference to `use_rt_clock'
collect2: ld returned 1 exit status
make: *** [qemu-ga] Error 1

Signed-off-by: Mark Wu <address@hidden>
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 8606849..6dc6ac3 100644
--- a/Makefile
+++ b/Makefile
@@ -197,7 +197,7 @@ QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.c 
qga-qapi-types.h qga-qapi-
 $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
-qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(trace-obj-y) 
$(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o 
qga-qapi-types.o qga-qmp-marshal.o)
+qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(trace-obj-y) 
$(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o 
qga-qapi-types.o qga-qmp-marshal.o) qemu-timer-common.o
 QEMULIBS=libhw32 libhw64 libuser libdis libdis-user

reply via email to

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