Akhilesh Mritunjai wrote:
> Joerg,
>
> I'm aware of the issue... but what I'm actually saying is that wouldn't it be
> more consistent if gcc uses gld and sun cc uses sun ld ?
>
>
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-discuss mailing list
> [email protected]
gcc and gld are separate programs that solve separate problems.
There's no requirement that they be used together. They are, of
course, close cousins. Still, I don't think it's more consistent to
always pair them no matter what platform you're on. The combination
that is most likely to work well is going to be gcc (or cc) with the
native linker, be it on Solaris or elsewhere (and note that gld is
the native linker in some places, notably Linux).
Naturally there are exceptions, but these nearly always come down
to one of:
1) The build configuration is gld-centric and is too
hard to wrangle for Solaris.
2) The C code makes use of gcc features that really
assume gld.
I wouldn't say that either of these are a matter of consistency,
just pragmatism. Lot's of free software these days assumes a linux
environment, and sometimes other platforms don't get as much
attention.
In both cases, the best thing would be to fix the package to do the
right thing under Solaris and contribute the changes back to the
maintainer.
Full Disclosure: I work at Sun, on the Sun linker. It's OK with
me if you use gld though. Good luck!
- Ali
_______________________________________________
opensolaris-discuss mailing list
[email protected]