3507018b5b
-lgcc_pic library. rtld uses the udivd3 routine from it. Repeat the bug by simply compiling ld on current.
26 lines
557 B
Makefile
26 lines
557 B
Makefile
# $Id: Makefile,v 1.9 1994/02/13 20:42:48 jkh 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 -lgcc_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>
|