Use -L for libc's objdir in case NOPICINSTALL is set in mk.conf.

This commit is contained in:
tv 1998-08-27 01:55:16 +00:00
parent a80cad6e0a
commit 65b8da28f5
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 1998/08/13 18:16:43 christos Exp $
# $NetBSD: Makefile,v 1.15 1998/08/27 01:55:16 tv Exp $
.include <bsd.own.mk> # for OBJECT_FMT definition
@ -13,13 +13,16 @@ PROG= ld.elf_so
.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
.endif
CLIBOBJ!=cd ${.CURDIR}/../../lib/libc; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
SRCS+= rtld.c reloc.c symbol.c malloc.c xmalloc.c xprintf.c debug.c \
map_object.c load.c search.c headers.c paths.c
CPPFLAGS+= -Wall -DLIBDIR=\"${LIBDIR}\" -D_PATH_RTLD=\"${BINDIR}/${PROG}\"
CPPFLAGS+= -DDEBUG -DRTLD_LOADER
#CPPFLAGS+= -DRTLD_DEBUG
LDADD+= -L${DESTDIR}/${LIBDIR} -non_shared -lc_pic
LDADD+= -L${DESTDIR}/${LIBDIR} -L${CLIBOBJ} -non_shared -lc_pic
DPADD+= ${LIBC_PIC}
.if (${OBJECT_FMT} == "ELF")