ok to add -fPIC to non shared library?
Tim Pushor
tim@thepushors.com
Mon May 25 17:19:00 GMT 2009
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@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
>
More information about the Gcc-help
mailing list