This is the mail archive of the gcc-patches@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]

Re: [patch] releases.html


On Feb 15, 2001, Fergus Henderson <fjh@cs.mu.oz.au> wrote:

> On 14-Feb-2001, Alexandre Oliva <aoliva@redhat.com> wrote:
>> On Feb 14, 2001, "Zack Weinberg" <zackw@stanford.edu> wrote:
>> 
>> > Yabbut, thing is, I can do that in twenty lines of Makefile on any
>> > platform that doesn't care what the extension of object files is.
>> 
>> Unfortunately, there are a number of platforms that do.  And we
>> learned that the hard way.

> Could you be more specific?  Which platforms care?

I don't remember for sure.  But there are compilers and linkers that
break if object files are not named foo.o.  IIRC, GCC is one of them,
on platforms in which collect2 must do anything non-trivial, such as
collecting info from object files.

> Is it OK to put -fPIC code in a static library on those platforms?

To the best of my knowledge, it's always ok to put -fPIC code in a
static library.  It's the other way round that breaks: putting non-PIC
in shared libraries is not always supported.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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