Subject: Re: Making a shared library: how?
To: None <P.T.H.Tutelaers@urc.tue.nl>
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
List: netbsd-help
Date: 02/08/1995 17:40:20
I added these to various spots in the ncurses Makefile:

SLIBOBJS= lib_setup.so lib_kernel.so lib_tparm.so...

.SUFFIXES: .d .pg .so

.c.so:
	$(CC) -fpic -DPIC $(CFLAGS) -c ${.IMPSRC} -o ${.TARGET}
	@$(LD) -x -r ${.TARGET}
	@mv a.out ${.TARGET}

libncurses_pic.a: ${SLIBOBJS}
	ar cq libncurses_pic.a `lorder ${SLIBOBJS} | tsort`

libncurses.so.0.0: libncurses_pic.a
	$(LD) -Bshareable -Bforcearchive -o libncurses.so.0.0 libncurses_pic.a