gcc & linker question (Solaris 10)

Hi,

I'm confused about the GCC & Linking process could somebody please briefly explain?

I have GCC 3.4.6 installed from SunFreeware. Reading the narrative alongside the package states "It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages are installed."

SUNW developer packaes are installed and ld / as / ar are in the relevant /usr/ccs/bin directory.

I also have the GNUbinutils package installed which installs ld / as / ar in /usr/local/bin. this /usr/local/bin dir precedes / usr/ccs/bin in my $PATH.

When installing third party applications, i commonly see:
./configure \
--with-gnu-ld \
--with-gnu-as \
which i specify & the applications install and work okay, however:

checking config.log shows

Reading specs from /usr/local/lib etc etc etc
Configure with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin

whats going on?

Thanks

Nick

Understand fully now that this Gcc uses Gas and that /usr/ccs/bin/as was never ever used at all.
Sunfreeware's compilers are severely out of date. Try the compiler from Nevada build 22 or later instead. I don't know offhand whether we're going to patch this in S10 but if it turns out that there are real problems with using gas (and I'm not at all convinced that this problem is real) then we would ikely do so. In any case I am actively interested in making sure that the gcc we ship with Solaris works, and if you can help us characterise the bug(s) here, if any, I will work to get them fixed