On 04/06/2024 16.35, Paolo Bonzini wrote:
Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
x86/Makefile.common | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x86/Makefile.common b/x86/Makefile.common
index 4ae9a557..c5dd4970 100644
--- a/x86/Makefile.common
+++ b/x86/Makefile.common
@@ -103,9 +103,9 @@ test_cases: $(tests-common) $(tests)
$(TEST_DIR)/%.o: CFLAGS += -std=gnu99 -ffreestanding -I $(SRCDIR)/lib -I $(SRCDIR)/lib/x86 -I lib
-$(TEST_DIR)/realmode.elf: $(TEST_DIR)/realmode.o
+$(TEST_DIR)/realmode.elf: $(TEST_DIR)/realmode.o $(SRCDIR)/$(TEST_DIR)/realmode.lds
$(LD) -m elf_i386 -nostdlib -o $@ \
- -T $(SRCDIR)/$(TEST_DIR)/realmode.lds $^
+ -T $(SRCDIR)/$(TEST_DIR)/realmode.lds $(filter %.o, $^)
Reviewed-by: Thomas Huth <thuth@xxxxxxxxxx>