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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for the reply, Ian.

If you don't mind explaining a bit further, why exactly will it be slower?

Thanks,
Tim

Ian Lance Taylor wrote:
Tim Pushor <tim@xxxxxxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux