libtool-patches
[Top][All Lists]
Advanced

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

Re: Solaris, combining a bunch of convenience archives


From: Albert Chin
Subject: Re: Solaris, combining a bunch of convenience archives
Date: Wed, 12 Oct 2005 12:42:21 -0500
User-agent: Mutt/1.5.6i

On Wed, Oct 12, 2005 at 02:18:28PM +0200, Ralf Wildenhues wrote:
> Since on Solaris we sometimes use `$CC' for linking though (CVS HEAD
> uses $CC instead of $LD in this case), this is not sufficient.  AFAICS
> the linker driver fails when all he gets is `-Wl,..' args:
> 
> $ cc -G -h libfoo.so.0 -o .libs/libfoo.so -Wl,-z 
> -Wl,allextract,.libs/libconv.a -Wl,-z -Wl,defaultextract -ldl -laio -lm -lnsl 
> -lsocket -lc -xarch=v9 -mt
> usage: cc [ options] files.  Use 'cc -flags' for details 
> 
> One workaround for the user would be to add a dummy object to the link
> line.
> 
> I haven't found a good way to persuade the compiler driver to invoke the
> linker anyway yet.. does anybody have a better idea than going back to
> linking with $LD (maybe only in the 64bit case)?  Any suggestions?

Infer from -xarch=v9? I really don't want to go back to linking with
$LD (and, what happens for C++ where you must link with $CC?).

-- 
albert chin (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]