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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]