Index: [thread] [date] [subject] [author]
  From: Owen L. Astrachan <ola@news.cs.duke.edu>
  To  : 
  Date: 5 Mar 1999 03:32:42 GMT

Re: Still having trouble with libraries

In article <m3emn4iu7p.fsf@omnicron.dorm.duke.edu>,
Garrett Mitchener  <wgm2@duke.edu> wrote:
>Donald Ellis Flood <def5@duke.edu> writes:
>

>
>When you make a shared library, you need to do the following:
>
>* Compile all your library .o files with the -fPIC flag.  You do not
>  need to compile the .o files for your executable with -fPIC,
>  although it shouldn't hurt.  You should not compile with -shared.
>  The web page says this and it seems to be wrong.  (Sorry ola)
>
>* Link the library .o files with ld -G etc. as on the web page.
>

  <snip snip>

I've updated the web page on libraries so that it says to use -fPIC and
corresponds to Garrett's post.

Many thanks to all UTAs and to Garrett in particular for figuring this
out.

Ima Lurker




Index: [thread] [date] [subject] [author]