On 11/16/2009 05:19 PM, Daniel P. Berrange wrote:
That assumes the person is using GCC, which is not a pre-requisite
for libvirt. eg Solaris builds use the Solaris compiler suite
In that case you can just punt and use ld. The full one would be like
if test "x${LD+set}" = xset; then
:
elif test "x$GCC" = xyes; then
LD=`$CC --print-prog-name=ld`
else
LD=ld
fi
For Solaris, using /usr/bin/ld is probably wrong more often than for
Linux, since the Solaris suite would use /usr/ccs/bin/ld as far as I
remember.
Paolo