How to tell if gcc uses GNU or Sun linker on Solaris?

Marc Glisse marc.glisse@normalesup.org
Wed Sep 30 18:03:00 GMT 2009


On Wed, 30 Sep 2009, Dr. David Kirkby wrote:

> Is there any way to tell for certain if gcc uses the GNU or Sun linker on 
> Solaris, in a program? I would also like to do the same for the assembler, 
> though that is less important to me.

$ gcc -print-prog-name=ld
/usr/ccs/bin/ld

I don't know how reliable it is though, as on linux it usually just prints 
"ld" without a path.

-- 
Marc Glisse



More information about the Gcc-help mailing list