|
From: | herman bastiaens |
Subject: | RE: stop libtool from compiling everything twice |
Date: | Fri, 28 Nov 2008 09:50:44 +0000 |
> * Bernd Jendrissek wrote on Thu, Nov 27, 2008 at 05:32:08PM CET: > > On Thu, Nov 27, 2008 at 4:52 PM, herman bastiaens <address@hidden> wrote: > > > is there a way to stop libtool from compiling everything twice? I am > > > compiling a convenience library, so I add the -static and -prefer-non-pic > > > flag, but it's still compiling my file twice. The command looks like this: > > > > I usually build everything with --disable-static; that seems to cause > > libtool to compile files only once. I don't know if this works for > > convenience libraries specifically, or if they'd still get compiled > > both ways. > > Should work for convenience archives just fine, and is a good idea if > static linking is not needed. > > If you need both static and shared elsewhere, you can also try > libconv_la_LIBTOOLFLAGS = --tag=disable-static > I tried the --disable-static option (I believe for a static convenience library, I should use the --disable-shared option?), but libtool doesn't recognize it: libtool: unrecognized option '--disable-static' the command i tried is: libtool --disable-static --mode=compile g++ -g -pipe -c file.cpp libtool --mode=compile --disable-static g++ -g -pipe -c file.cpp libtool --mode=compile g++ --disable-static -g -pipe -c file.cpp Explore the seven wonders of the world Learn more! |
[Prev in Thread] | Current Thread | [Next in Thread] |