From d87559f9b9c54497828547d5b462276373332dc0 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 24 Nov 2010 13:44:42 +0000 Subject: [PATCH] Fix for objdir feature of BSD make contributed by Antoine Leca. --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 153a0b4f3..b4dd00d9f 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -22,7 +22,7 @@ CFLAGS += -D__kernel__ LDFLAGS+= -.o .elif ${COMPILER_TYPE} == "gnu" CPPFLAGS+= -ffreestanding -fno-stack-protector -LDFLAGS+= -T arch/${ARCH}/kernel.lds +LDFLAGS+= -T ${.CURDIR}/arch/${ARCH}/kernel.lds LDFLAGS+= -nostdlib -L${LIBDIR} CFLAGS+=-march=i386 DPADD+= ${LIBC} -- 2.44.0