This is the mail archive of the gcc@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: Software Convention Proposal


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~


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