From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1510452cd1ec58ee X-Google-Attributes: gidfee84,public From: lucia@savvy.zko.dec.com (Tim Lucia) Subject: Re: Creating shared libraries Date: 1995/12/18 Message-ID: <4b43h9$23t@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 122211129 distribution: world references: <4ak145$7t4@news.res.ray.com> <4as3tn$rab@zk2nws.zko.dec.com> organization: Digital Equipment Corporation reply-to: lucia@zko.dec.com newsgroups: comp.unix.osf.osf1 Hmm. My previous post got truncated. What I meant to say was: In article <4ak145$7t4@news.res.ray.com>, tringali@news.ed.ray.com (Scott Tringali) writes: |>How do I create my own shared libraries? I am working with a large (30+) |>number of applications that have many common libraries. These are created with |>cc -c, then ar, and then linked into the final application with cc. |> |>Is there any way I can take these libraries, compile them to a .so, and save on |>disk space and memory? I haven't found any references how to do this in the cc |>or ld man pages. |> You didn't look hard enough. It is in the ld(1) manual page: NAME ld, uld - link editor and ucode link editor SYNOPSIS ld [ option ... ] file ... uld [ option ... ] file ... DESCRIPTION The ld command invokes the DEC OSF/1 link editor which links extended coff object files. The archive format understood by ld is the one created by the archiver ar(1).