Software Convention Proposal
Richard Henderson
rth@redhat.com
Wed Aug 28 09:55:00 GMT 2002
On Fri, Aug 23, 2002 at 02:47:04PM -0700, Kirkegaard, Knud J wrote:
> It is not exactly the same as -fno-pic since the default is still PIC...
This is not actually correct. For gcc, the presence or abscense of
-fpic on the command line *does* change the symbol resoution rules
used inside the compiler. It is already the case that shared libraries
must be compiled with -fpic or you'll get link errors of the form
file.o: @gprel relocation against dynamic symbol foo
Thus, from my point of view, your -fminshared is exactly the same as
-fvisibility=protected and without -fpic.
r~
More information about the Gcc
mailing list