[libvirt] PATCH: configure.in should use 'ld' from $PATH for checking version-script syntax, not hardcode /usr/bin/ld

Paolo Bonzini pbonzini at redhat.com
Mon Nov 16 16:22:00 UTC 2009


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




More information about the libvir-list mailing list