shared library patch for SCO OpenServer 5.0.5 & egcs

Robert Lipe robertlipe@usa.net
Sun Feb 28 18:15:00 GMT 1999


> >> >  > Should we just modify the OpenServer build environment to build
> >> >  > sol2-ci.asm and install it as crti.o in our libdir?
> >> >
> >> > That would make sense.  You will want crtn.o as well.
> 
> 
> Fix me if I am wrong. The planned change is the following:

I think you indeed have the steps correct.   Patch welcome. :-)

> - Modify configure or makefile in egcs to build crti.o from i386/sol2-ci.asm
> or using a sco5 specific copy. As sco5 support multilib crti.o must be
> included only for ELF environment.

There was some thought to using the crti.c that Don Terry mentioned.  Even
though they're tiny, the thought of having (at least) three files doing 
the same thing seems sort of icky.

> - Modify configure or makefile to install crti.o patch in egcs specific
> libdir.

Right.  This was the piece missing in your original patch.

> - Modify sco5.h to add support in SPECS macro to change startfile to
>   %{!mcoff: %{shared: crti.o%s}} plus rest

You can decide whether or not to include it in COFF builds (please be
sure to test it if you do).  I don't immediately see the harm in it.

RJL



More information about the Gcc-patches mailing list