* Re: How do I make a dynamic shared library?
1995-06-09 4:00 How do I make a dynamic shared library? S R Crothers
1995-06-09 4:00 ` John Stoffel
@ 1995-06-09 4:00 ` Dirk Grunwald
1 sibling, 0 replies; 3+ messages in thread
From: Dirk Grunwald @ 1995-06-09 4:00 UTC (permalink / raw)
From the 'ld' man page:
-shared
Produce a shared object. This includes creating all of the tables for
run-time linking and resolving references to other specified shared
objects. The object created may be used by the linker to make dynamic
executables.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I make a dynamic shared library?
1995-06-09 4:00 How do I make a dynamic shared library? S R Crothers
@ 1995-06-09 4:00 ` John Stoffel
1995-06-09 4:00 ` Dirk Grunwald
1 sibling, 0 replies; 3+ messages in thread
From: John Stoffel @ 1995-06-09 4:00 UTC (permalink / raw)
>>>>> "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
^ permalink raw reply [flat|nested] 3+ messages in thread
* How do I make a dynamic shared library?
@ 1995-06-09 4:00 S R Crothers
1995-06-09 4:00 ` John Stoffel
1995-06-09 4:00 ` Dirk Grunwald
0 siblings, 2 replies; 3+ messages in thread
From: S R Crothers @ 1995-06-09 4:00 UTC (permalink / raw)
What commands do I need to give to create and subsequenty use
dynamic shared libraries? I notice that the system files in
/usr/shlib give as the output to the file command
COFF format alpha shared library, demand paged executable or object
module not stripped - version 3.11-4
but none of the options I have seen for ld seem to create one of these.
--
------------------------------------------------------------------
Steve Crothers * Tel: 0235-446564
Rutherford Appleton Laboratory * Fax: 0235-445848
Chilton, DIDCOT, Oxon. OX11 0QX * Email: steve@eiscat.ag.rl.ac.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-06-09 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-09 4:00 How do I make a dynamic shared library? S R Crothers
1995-06-09 4:00 ` John Stoffel
1995-06-09 4:00 ` Dirk Grunwald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox