libtool
[Top][All Lists]
Advanced

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

Re: Reordering the command line


From: Herb Hrowal
Subject: Re: Reordering the command line
Date: Sun, 2 Jan 2005 15:39:47 -0800

Thanks for the tip. It didn't even occur to me to try it this way, but
it works fine.

Thanks again,

Herb


On Thu, 30 Dec 2004 20:35:38 -0600, Albert Chin
<address@hidden> wrote:
> On Wed, Dec 29, 2004 at 05:35:56PM -0800, Herb Hrowal wrote:
> > I'm trying to use libtool to compile and link my program. I don't care
> > if most of the libraries I link to are static or dynamic except 1. I
> > need to link to the static version of  the library.  My command looks
> > like this:
> >
> > libtool --mode=link gcc -static <all the object files> -la -lb -lc
> > -Wl,-Bstatic -ld -Wl,-Bdynamic -le -lf
> 
> Do you specify "-Wl,-Bstatic -ld -Wl,-Bdynamic" manually? If so, then
> use this:
>   -Wl,-Bstatic,-ld,-Bdynamic
> 
> > My question is why does libtool find it necessary to reorder things
> > for me?
> 
> This is really hard to fix in libtool. It's wrong though.
> 
> --
> albert chin (address@hidden)
>




reply via email to

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