[pooma-dev] GCC Questions

Mark Mitchell mark at codesourcery.com
Mon Oct 29 21:31:54 UTC 2001



--On Friday, October 26, 2001 02:15:27 PM -0600 Dave Nystrom <wdn at lanl.gov> 
wrote:

> Also, what options do I use to build and use shared libraries?

It is slightly different from system to system.  On most systems:

  gcc -fPIC -c a.c        // Compile the objects in the shared
                          // library.
  gcc -shared -o a.so a.o // Build the shared library.

On IRIX 6, I think all objects are implicitly PIC, so you probably
don't need the -fPIC.

-- 
Mark Mitchell                mark at codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the pooma-dev mailing list