This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building libraries with -fPIC doubt


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      _/     _/            _/    _/
                                 _/_/_/        _/_/_/       _/_/_/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]