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

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



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


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