From: Arun Thomas Date: Fri, 19 Nov 2010 10:28:17 +0000 (+0000) Subject: kernel: Use LIBDIR var in Makefile X-Git-Tag: v3.2.0~738 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.html?a=commitdiff_plain;h=cfc1fe2ead390dd83d2aef47e0627809945cee5b;p=minix.git kernel: Use LIBDIR var in Makefile Instead of using a hard-coded path, use the LIBDIR variable so the library path can be overridden. --- 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