Eric Botcazou <[email protected]> writes:
>> No, I'd like to avoid non-Solaris targets using Solaris config fragments
>> if at all possible. AFAICS there's nothing Solaris-specific in
>> config/sparc/sol2-c[in].S. If so, the simplest solution would be to
>> rename the files to crt[in].S. On RTEMS, the generic crt[in].o rules in
>> Makefile.in would deal with building them, on Solaris I'd have to juggle
>> around the CUSTOM_CRTIN setting so it's only used on Solaris/x86.
>>
>> Eric, am I missing something about the sparc/sol2-c[in].S files?
>
> There is the same problem on i386, see:
> http://gcc.gnu.org/ml/gcc-patches/2011-05/msg02334.html
The same solution seems to apply here: just rename the files to
crt[in].S and use the generic rules. They don't seem Solaris-specific
either.
> Where did config/t-crtin go? Alternatively, why not just add the missing
> rules
> to config/t-rtems?
The rules are generic and have been integrated into libgcc/Makefile.in,
but only used unless CUSTOM_CRTIN is set in a target fragment.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University