Use the extra LDFLAGS if OBJDIR is defined.
This commit is contained in:
parent
3f6f86d875
commit
d0b955050b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user