Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to make a shared library
@ 1995-02-26 16:53 Stefan Monnier
  1995-02-28 16:28 ` George Chaltas
  1995-03-02 13:45 ` Gilles Vandenbeuck
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Monnier @ 1995-02-26 16:53 UTC (permalink / raw)


I looked in the ld manpage and such but could quite understand how to make a .so
library. I'm probably dense but still...

Anyboy could tell me what command to use instaed of 'ar rv' ?


	Stefan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make a shared library
  1995-02-26 16:53 How to make a shared library Stefan Monnier
@ 1995-02-28 16:28 ` George Chaltas
  1995-03-02 13:45 ` Gilles Vandenbeuck
  1 sibling, 0 replies; 3+ messages in thread
From: George Chaltas @ 1995-02-28 16:28 UTC (permalink / raw)


"Stefan Monnier" <monnier@di.epfl.ch> wrote:
>
> I looked in the ld manpage and such but could quite understand how to make a .so
> library. I'm probably dense but still...
> 
> Anyboy could tell me what command to use instaed of 'ar rv' ?
> 
> 
> 	Stefan

Sure -- as you suspected, you use ld(1) to create shared libraries.
The manual will give you all the gory details, but here are some
simple examples:

Example 1 - create a shared library from two object files:

  ld -o mylib.so obj1.o obj2.o -shared

Example 2 - create a shared library from an archive:

  ld -o mylib.so -all myarchive.a -shared

  The -all flag tells the linker to incorporate all the modules in
the following archive, rather than just using those modules necessary
to resolve previously referenced symbols.  In example 2 (above),
if the -all flag were ommitted you'd end up with an empty shared
library.

For more than you ever wanted to know about shared libraries, see
section 3 of the "DEC OSF/1 Programmer's Guide", which is on
the Operating System distribution CD.   Section 3.5 deals specifically
with creating shared libraries.

		George Chaltas
		Digital Equipment Corporation



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make a shared library
  1995-02-26 16:53 How to make a shared library Stefan Monnier
  1995-02-28 16:28 ` George Chaltas
@ 1995-03-02 13:45 ` Gilles Vandenbeuck
  1 sibling, 0 replies; 3+ messages in thread
From: Gilles Vandenbeuck @ 1995-03-02 13:45 UTC (permalink / raw)


Stefan Monnier (monnier@di.epfl.ch) wrote:
: I looked in the ld manpage and such but could quite understand how to make a .so
: library. I'm probably dense but still...

ld -shared -no_archive -o libxx.so -all /usr/lib/libxx.a -none -lc

-- 
    >	Gilles Vandenbeuck, System Administrator, Energy Control Systems   <
    >	CAE Electronics Ldt.,                                              <
    >	8585 Cote de Liesse, St-Laurent, Quebec, Canada, H4T 1G6           <
    >	(514) 341-6780 ext 3733, gillesv@cae.ca                            <


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-03-02 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-26 16:53 How to make a shared library Stefan Monnier
1995-02-28 16:28 ` George Chaltas
1995-03-02 13:45 ` Gilles Vandenbeuck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox