]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for objdir feature of BSD make
authorBen Gras <ben@minix3.org>
Wed, 24 Nov 2010 13:44:42 +0000 (13:44 +0000)
committerBen Gras <ben@minix3.org>
Wed, 24 Nov 2010 13:44:42 +0000 (13:44 +0000)
contributed by Antoine Leca.

kernel/Makefile

index 153a0b4f399fb15fb200161f5e88faf1fab869fb..b4dd00d9fa67bf25f8a65f43b4ef0e465e35279d 100644 (file)
@@ -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}