* [PATCH] kvm test: Fix i386 crossbuild
@ 2010-04-14 14:03 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2010-04-14 14:03 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: kvm
This fixes "make ARCH=i386" of the KVM micro tests on x86-64 hosts.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
kvm/user/config-x86-common.mak | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kvm/user/config-x86-common.mak b/kvm/user/config-x86-common.mak
index 63cca42..f3172fb 100644
--- a/kvm/user/config-x86-common.mak
+++ b/kvm/user/config-x86-common.mak
@@ -18,6 +18,8 @@ $(libcflat): CFLAGS += -ffreestanding -I test/lib
CFLAGS += -m$(bits)
+libgcc := $(shell $(CC) -m$(bits) --print-libgcc-file-name)
+
FLATLIBS = test/lib/libcflat.a $(libgcc)
%.flat: %.o $(FLATLIBS)
$(CC) $(CFLAGS) -nostdlib -o $@ -Wl,-T,flat.lds $^ $(FLATLIBS)
@@ -32,7 +34,7 @@ test_cases: $(tests-common) $(tests)
$(TEST_DIR)/%.o: CFLAGS += -std=gnu99 -ffreestanding -I test/lib -I test/lib/x86
$(TEST_DIR)/bootstrap: $(TEST_DIR)/bootstrap.o
- $(CC) -nostdlib -o $@ -Wl,-T,bootstrap.lds $^
+ $(CC) $(CFLAGS) -nostdlib -o $@ -Wl,-T,bootstrap.lds $^
$(TEST_DIR)/access.flat: $(cstart.o) $(TEST_DIR)/access.o $(TEST_DIR)/print.o
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-14 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 14:03 [PATCH] kvm test: Fix i386 crossbuild Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.