what does -fno-pic do

Yubin Ruan ablacktshirt@gmail.com
Mon Jul 11 15:29:00 GMT 2016


On 2016年07月11日 19:47, Mason wrote:
> On 11/07/2016 12:59, Yubin Ruan wrote:
>
>> I really search carefully in the man pages on my Ubuntu/Linux-14.04-LTS.
>> I cannot find much description about that.
>
> That's unexpected :-(
>
> $ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=14.04
> DISTRIB_CODENAME=trusty
> DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
>
> $ man gcc
> (last line states gcc-4.8, dated 2015-04-26)
>
> Search for Generate position-independent code
>
> Jumps to -fpic and -fPIC descriptions.
>
> https://gcc.gnu.org/onlinedocs/gcc-4.8.4/gcc/Code-Gen-Options.html
>
> Regards.
>
Some mistake here.
I searched for **-fno-pic** and forgot to search for **-fpic**.
There is indeed descriptions of -fpic in the man page, but none for 
**-fno-pic**.
My fault. Maybe at that time I got messed up with code and was in a 
rush. Sorry.

Thanks,
Ruan



More information about the Gcc-help mailing list