logo       

Re: Reordering the command line: msg#00009

gnu.libtool.general

Subject: Re: Reordering the command line

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
<libtool@xxxxxxxxxxxxxxxxxxxxxxxxx> 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 (china@xxxxxxxxxxxxxxxxxx)
>


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise