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]

Re: ok to add -fPIC to non shared library?


Tim Pushor <tim@thepushors.com> writes:

> I'll cut to the chase - is it ok to include -fPIC compiling C code to
> be included in a static library?

Yes.

However, the resulting executable will run slightly slower.

Ian


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