mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 17:44:17 +01:00
09e3d49d92
late stage due to the fact that link.h was copyright Sun Microsystems. This version of ld sync's us up with NetBSD's ld and supports compatablily with NetBSD's -[zZ] flags (which we had reversed). Compiling with this new ld will give you RRS warnings for libraries which do not contain .type infomation - these wsarnings are harmless and will go away as soon as you recompile your libraries (cd /usr/src; make libraries).
26 lines
546 B
Makefile
26 lines
546 B
Makefile
# $Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $
|
|
|
|
PROG= ld.so
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
|
|
NOMAN= noman
|
|
LDDIR?= $(.CURDIR)/..
|
|
#PICFLAG=-pic
|
|
PICFLAG=-fpic
|
|
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) $(PICFLAG) -DRTLD
|
|
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
|
|
ASFLAGS+=-k
|
|
LDADD+= -lc_pic
|
|
BINDIR= /usr/libexec
|
|
|
|
.SUFFIXES: .S
|
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
$(PROG):
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
|
|
|
|
.S.o:
|
|
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
|
|
|
.include <bsd.prog.mk>
|