Building libraries with -fPIC doubt
Ivens Porto
ivens@ose.com.br
Wed Sep 25 09:46:00 GMT 2002
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 _/ _/ _/ _/
_/_/_/ _/_/_/ _/_/_/
More information about the Gcc-help
mailing list