Jason Tucker wrote:
Stupid quick question: Is it a good idea to use GNU ld over the stock ld
(on Solaris 7)? While troubleshooting my recent problem, I recompiled with
GNU ld. Other thant he resulting binaries being much smaller with GNU ld,
I'm not sure what the difference is.
I've had other software packages that simply wouldn't compile without GNU
ld, but courier seems happy either way, which is why I ask.
It's probably better to use Solaris LD with Solaris CC if you can afford
it, about $5,000 for a license. The resulting binaries will run about
200% faster than those compiled with GCC. However, not all developers
write code that is C compiler neutral because they aren't all willing to
pay this license fee for every different C compiler so they can test
them all, and I believe that Solaris CC doesn't implement alot of
features that GNU does. If you feel like wrestling with compiling, and
possibly making changes to the code to get it to compile with Solaris CC
then more power to you. I mostly use GCC and GNU LD, since I don't have
time to mess around for days on end to get one piece of software to
compile. It is really nice though, when you can get it compiled with
Solaris CC without too much effort.
Mike