public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix building of kvmctl
@ 2007-11-08 20:05 Jerone Young
  2007-11-11 10:07 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jerone Young @ 2007-11-08 20:05 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

# HG changeset patch
# User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# Date 1194551969 21600
# Node ID c08b2667a95ecd85effb1d5f5d84e235f9e8d6cc
# Parent  d6fa0d16fa60ee5083877fec698b69cea840d0b0
Fix building of kvmctl

This patch creates the make rule needed to for the linker
to link libkvm archive and main.o object to compile kvmctl
correctly. Also fixes order at which objects are seen when
linking, so that they can link correctly.

Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/user/Makefile b/user/Makefile
--- a/user/Makefile
+++ b/user/Makefile
@@ -31,6 +31,7 @@ kvmctl: LDFLAGS += -pthread -lrt
 kvmctl: LDFLAGS += -pthread -lrt
 
 kvmctl: $(kvmctl_objs)
+	$(CC) $(LDFLAGS) $^ -o $@
 
 %.flat: %.o
 	$(CC) $(CFLAGS) -nostdlib -o $@ -Wl,-T,flat.lds $^
diff --git a/user/config-x86-common.mak b/user/config-x86-common.mak
--- a/user/config-x86-common.mak
+++ b/user/config-x86-common.mak
@@ -2,7 +2,7 @@
 
 all: kvmctl test_cases
 
-kvmctl_objs=../libkvm/libkvm.a main.o
+kvmctl_objs= main.o ../libkvm/libkvm.a
 
 balloon_ctl: balloon_ctl.o
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix building of kvmctl
  2007-11-08 20:05 [PATCH] Fix building of kvmctl Jerone Young
@ 2007-11-11 10:07 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-11-11 10:07 UTC (permalink / raw)
  To: Jerone Young
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Jerone Young wrote:
> # HG changeset patch
> # User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> # Date 1194551969 21600
> # Node ID c08b2667a95ecd85effb1d5f5d84e235f9e8d6cc
> # Parent  d6fa0d16fa60ee5083877fec698b69cea840d0b0
> Fix building of kvmctl
>
> This patch creates the make rule needed to for the linker
> to link libkvm archive and main.o object to compile kvmctl
> correctly. Also fixes order at which objects are seen when
> linking, so that they can link correctly.
>
>   

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-11 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-08 20:05 [PATCH] Fix building of kvmctl Jerone Young
2007-11-11 10:07 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox