]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: Use LIBDIR var in Makefile
authorArun Thomas <arun@minix3.org>
Fri, 19 Nov 2010 10:28:17 +0000 (10:28 +0000)
committerArun Thomas <arun@minix3.org>
Fri, 19 Nov 2010 10:28:17 +0000 (10:28 +0000)
Instead of using a hard-coded path, use the LIBDIR variable so
the library path can be overridden.

kernel/Makefile

index 12eef69e37f1a25a7d14e887ce58260a52e699ce..153a0b4f399fb15fb200161f5e88faf1fab869fb 100644 (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