Making shared libraries

Bjorn Engsig bengsig at oracle.nl
Mon Oct 15 22:00:52 AEST 1990


Article <1990Oct11.160027 at ead.dsa.com> by schorr at ead.dsa.com (Andrew J. Schorr) says:
|My question is simple: how do you make shared libraries?
If you read the ld man page carefully between the lines, you will see that
in your step 3:
|  3. link the .o files into a shared object as follows:
|	ld -r -o shared_object.o {object files} -bE:export.list \
|		-bM:SRE -T512 -H512
you are not allowed to use -r, but you should add -lc (plus anything else
needed) to create a fully linked object without unresolved references.
|  The ld man page
|is very vague on this subject.
Indeed.
-- 
Bjorn Engsig,         E-mail: bengsig at oracle.com, bengsig at oracle.nl
ORACLE Corporation    From IBM: auschs!ibmaus!cs.utexas.edu!uunet!oracle!bengsig

            "Stepping in others footsteps, doesn't bring you ahead"



More information about the Comp.unix.aix mailing list