Message ID | 1418864165-32419-2-git-send-email-joel@jms.id.au |
---|---|
State | Accepted |
Headers | show |
diff --git a/test/hello_world/Makefile.check b/test/hello_world/Makefile.check index a2a430c..cfb64d9 100644 --- a/test/hello_world/Makefile.check +++ b/test/hello_world/Makefile.check @@ -6,7 +6,7 @@ $(HELLO_WORLD_TEST:%=%-check) : %-check: % skiboot.lid ./test/hello_world/run_hello_world.sh test/hello_world/hello_kernel/hello_kernel.o: test/hello_world/hello_kernel/hello_kernel.S - $(call Q,CC, $(CC) -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o $@ $^ ,$@) + $(call Q,CC, $(CC) -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o $@ $< ,$@) hello_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/hello_world/hello_kernel/hello_kernel.ld -ffreestanding -nostdlib -Ttext=0x0 -lgcc
powerpc-linux-gnu-gcc -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o test/hello_world/hello_kernel/hello_kernel.o test/hello_world/hello_kernel/hello_kernel.S test/hello_world/hello_kernel/asm-utils.h powerpc-linux-gnu-gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files GCC barfed as we were passing the header and the c file while compiling with -c. Fix the rule to just build source file. Signed-off-by: Joel Stanley <joel@jms.id.au> --- test/hello_world/Makefile.check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)