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 Thu, Feb 15, 2001 at 04:26:05AM -0200, Alexandre Oliva wrote:
> 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.

That shouldn't be too hard to fix.  I looked at collect2.c and the
only problem I see is that the command-line parsing code knows what
extensions object files might have (and is wrong anyway - it doesn't
know about .dll, .lib, .sl, or .la).  This could go away if we gave
collect2 more information, and we were discussing that already.

collect2.c is a horrible mess and I may have missed something.

zw


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