libtool
[Top][All Lists]
Advanced

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

Re: Reordering the command line


From: Albert Chin
Subject: Re: Reordering the command line
Date: Thu, 30 Dec 2004 20:35:38 -0600
User-agent: Mutt/1.5.6i

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]