This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Building libraries with -fPIC doubt
- From: Ivens Porto <ivens at ose dot com dot br>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Sep 2002 13:20:52 +0000
- Subject: Building libraries with -fPIC doubt
- Organization: OSE - Open Systems Engineering
Hello,
I need to generate both a static (.a) and a shared (.so) version of a
library.
To build the shared library version, I'm using the -fPIC option to
generate the object files that will make the shared library.
My doubt is if there's any problem to use the same object files,
generated with -fPIC, to generate the static library (.a)? This is, can
I use object files generated with -fPIC (or -fpic) to build both static
(.a) and shared (.so) libraries?
Thanks,
--
_/_/_/ _/_/_/ _/_/_/
Ivens Porto _/ _/ _/ _/
OSE - Open Systems Engineering _/ _/ _/ _/
http://www.ose.com.br _/ _/ _/_/_/ _/_/_/_/
Phone: (55) 34 - 3214-5995 _/ _/ _/ _/
Fax: (55) 34 - 3214-5994 _/ _/ _/ _/
_/_/_/ _/_/_/ _/_/_/