[Top][All Lists]
[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 16:21:50 -0500 |
User-agent: |
Mutt/1.5.6i |
On Wed, Oct 12, 2005 at 09:02:08PM +0200, Ralf Wildenhues wrote:
> * Albert Chin wrote on Wed, Oct 12, 2005 at 07:42:21PM CEST:
> > 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
>
> > > 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 don't understand what you are trying to say with this comment.
> I have added `-xarch=v9' to the link line. cc ignores it.
>
> If I invoke ld directly, I have to add `-64', it does not understand
> `-xarch=v9',..
If libtool sees -xarch=v9, it should add -64 to the linker
command-line.
--
albert chin (address@hidden)
- Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Peter O'Gorman, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Albert Chin, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/12
- Re: Solaris, combining a bunch of convenience archives,
Albert Chin <=
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/13
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/14
- Re: Solaris, combining a bunch of convenience archives, Ralf Wildenhues, 2005/10/26
- Re: Solaris, combining a bunch of convenience archives, Gary V. Vaughan, 2005/10/27