cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Solaris 10?

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Tue, 7 Nov 2006 11:46:04 +0100

>> ld: warning: option -o appears more than once, first setting taken
>
> More than one? I can only spot one.
>
> Of course, if I were to write that line manually, I'd merge the -Wl
> options to -Wl,-soname,libcurl.so.3 but I don't think that matters...
in fact, I wonder if the ld is not the the right one and, it would
understand -soname libcurl.so.3 as: strip, output to name, and link
libcurl.so.3 inside that, then the -o libcurl.so.3.0.0 would come...

I remember that somewhere it was told that on Solaris 10 the preferred ld
was the OS ld (which does not have soname parameter)

however it seems that this ld (as does gnu ld) supports -h as -soname
replacement (BTW i imagine that it was the original name of the
parameter)... and it seems to accept it.

after some investigation, it seems that my real problem is that ./configure
thinks that gcc uses GNU ld but on Sun Solaris it is not recommended, so
gcc uses the host ld... which does not support soname, does not like at all
visbility hidden stuff...
is it possible? (that ./configure fails to recognize that it is NOT gld but
a poor old sun ld)
because of this it also tries to use -rpath (which is -R on Sun ld)

the command gcc --print-prog-name=ld returns
/usr/ccs/bin/ld (which is not gnu ld)

but configure prints me:
checking ld used by gcc-ellie-4.1... gld [!!!!!]

any idea?
Armel
Received on 2006-11-07