This is the mail archive of the 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 <> wrote:

> On 14-Feb-2001, Alexandre Oliva <> wrote:
>> On Feb 14, 2001, "Zack Weinberg" <> 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
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
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]