Path: utzoo!attcan!uunet!mcsun!hp4nl!orcenl!bengsig From: bengsig@oracle.nl (Bjorn Engsig) Newsgroups: comp.unix.aix Subject: Re: Making shared libraries Message-ID: <1017@nlsun1.oracle.nl> Date: 15 Oct 90 12:00:52 GMT References: <1990Oct11.160027@ead.dsa.com> Reply-To: bengsig@oracle.nl (Bjorn Engsig) Organization: Oracle Europe, The Netherlands Lines: 17 Article <1990Oct11.160027@ead.dsa.com> by schorr@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@oracle.com, bengsig@oracle.nl ORACLE Corporation From IBM: auschs!ibmaus!cs.utexas.edu!uunet!oracle!bengsig "Stepping in others footsteps, doesn't bring you ahead"