From: john@avante.WPI.EDU (John Stoffel)
Subject: Re: How do I make a dynamic shared library?
Date: 1995/06/09 [thread overview]
Message-ID: <JOHN.95Jun9105617@avante.WPI.EDU> (raw)
In-Reply-To: 3r92ec$2b0s@unixfe.rl.ac.uk
>>>>> "S" == S R Crothers <steve@eiscatc.ag.rl.ac.uk> writes:
In article <3r92ec$2b0s@unixfe.rl.ac.uk> steve@eiscatc.ag.rl.ac.uk (S R Crothers) writes:
S> What commands do I need to give to create and subsequenty use
S> dynamic shared libraries? I notice that the system files in
S> /usr/shlib give as the output to the file command
S> COFF format alpha shared library, demand paged executable or object
S> module not stripped - version 3.11-4
S> but none of the options I have seen for ld seem to create one of these.
All you need to do is build build your modules, then link them
together into a shared library using the proper flags. This isn't
explained too well in the ld man page, but once you know what to do,
it's pretty simple. For example:
ar rcu tmp.a foo.o bar.o
ld -o libtmp.so -shared -expect_unresolved "*" -s -all tmp.a
The -expect_unresolved "*" isn't really needed, but it does serve to
keep ld quieter. Hope this helps.
John
John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
Kill your television
prev parent reply other threads:[~1995-06-09 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-09 4:00 How do I make a dynamic shared library? S R Crothers
1995-06-09 4:00 ` Dirk Grunwald
1995-06-09 4:00 ` John Stoffel [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox