From cfc1fe2ead390dd83d2aef47e0627809945cee5b Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Fri, 19 Nov 2010 10:28:17 +0000 Subject: [PATCH] kernel: Use LIBDIR var in Makefile Instead of using a hard-coded path, use the LIBDIR variable so the library path can be overridden. --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 12eef69e3..153a0b4f3 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -23,7 +23,7 @@ LDFLAGS+= -.o .elif ${COMPILER_TYPE} == "gnu" CPPFLAGS+= -ffreestanding -fno-stack-protector LDFLAGS+= -T arch/${ARCH}/kernel.lds -LDFLAGS+= -nostdlib -L/usr/lib +LDFLAGS+= -nostdlib -L${LIBDIR} CFLAGS+=-march=i386 DPADD+= ${LIBC} LDADD+= -lgcc -lc -lgcc