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/ldI don't know how reliable it is though, as on linux it usually just prints "ld" without a path.
-- Marc Glisse