Use the extra LDFLAGS if OBJDIR is defined.

This commit is contained in:
veego 1997-05-30 11:39:01 +00:00
parent 3f6f86d875
commit d0b955050b
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
# $NetBSD: Makefile,v 1.17 1997/05/30 11:39:01 veego Exp $
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
@ -7,9 +9,13 @@ PICFLAG=-fpic -fno-function-cse
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
.if defined(OBJDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
.else
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
.endif # defined(OBJDIR)
LDADD+= -lc_pic
DPADD+= ${LIBC_PIC}
BINDIR= /usr/libexec

View File

@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
# $NetBSD: Makefile,v 1.17 1997/05/30 11:39:01 veego Exp $
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
@ -7,9 +9,13 @@ PICFLAG=-fpic -fno-function-cse
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
.if defined(OBJDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
.else
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
.endif # defined(OBJDIR)
LDADD+= -lc_pic
DPADD+= ${LIBC_PIC}
BINDIR= /usr/libexec