[comp.sys.3b1] How to use the shareable libraries

dlb5404@tamuts.tamu.edu (Daryl Biberdorf) (03/26/91)

Due to a couple of private requests for me to forward information
on the shareable libraries, here is the answer according
to David Thomas.  Thanks David!

---------------------------------------------------------------------------
That's a FAQ, and it's also expertly hidden (yes, WELL hidden :-) in the
manuals.  You do it like this:

	cc -c foo.c
	ld -o foo /lib/crt0s.o /lib/shlib.ifile foo.o

Sure!  Just what you would have guessed, right :-)  Took me a long time
to figure that one out.  I recommend that you grab "shcc" from the osu
archives.  It's a very smart adaptation of cc(1), which supports absolutely
all features of cc, plus it uses the shared library as much as is ever possible.

With it, you just go:

	shcc foo.c

and you're done!