How to use the shareable libraries
Daryl Biberdorf
dlb5404 at tamuts.tamu.edu
Tue Mar 26 10:22:05 AEST 1991
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!
More information about the Comp.sys.3b1
mailing list