kernel: Use LIBDIR var in Makefile

Instead of using a hard-coded path, use the LIBDIR variable so
the library path can be overridden.
This commit is contained in:
Arun Thomas 2010-11-19 10:28:17 +00:00
parent 504abf4b34
commit cfc1fe2ead

View file

@ -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