Skip to contentSkip to conversation

Makefile: fix that qemu doesn't compile with qemu-ga and simpletrace configured.

PATCH In review [email protected] 2 participants 2 messages Sep 1, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: fix that qemu doesn't compile with qemu-ga and simpletrace configured.

From: Mark Wu <[email protected]>

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
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index 8606849..6dc6ac3 100644
@@ -197,7 +197,7 @@ QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.c qga-qapi-types.h qga-qapi-
 $(QGALIB_GEN): $(GENERATED_HEADERS)
 $(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
 
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 14 lines · wudxw

From: Mark Wu <[email protected]>
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
Quoted 1 line

This pull request addresses the issue (first 2 patches):

http://lists.gnu.org/archive/html/qemu-devel/2011-09/msg00030.html

Lluis

Signature · 4 lines
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth