On Wednesday 03 August 2005 15:11, Danny van Dyk wrote:
> Mike Frysinger schrieb:
> | On Wednesday 03 August 2005 07:16 am, Martin Schlemmer wrote:
> |>On Tue, 2005-08-02 at 09:22 -0400, Mike Frysinger wrote:
> |>>On Monday 01 August 2005 10:43 pm, Danny van Dyk wrote:
> |>
> |>Last time I checked, only --without-pic or --disable-static disable
> |>compiling twice.
> |
> | my tests show that with libtool 1.5.18 --without-pic doesnt change
> | anything ... obviously --disable-static changes things same as
> | --disable-shared would :P
> |
> | maybe i just did it wrong ... i used imlib2-1.2.0 as a reference
> | -mike
>
> According to libtool's source, it only compiles things twice if it
> shall build 'old-libs' ($build_old_libs=yes) _and_ shared libraries. If
> it builds 'libtool-libs' ($build_libtool_libs=yes) it uses the same
> object files for both the static and the shared library.
>
> But I might be comletely wrong... libtool's internals are sometimes so
> confusing :-/

It shouldn't, and I believe it doesn't. Static libraries should be built 
without -pic, and shared with. Of course static libraries with pic do 
work, but it is a suboptimal solution. (Unless you want to include said 
static library into a shared library). Just see a static library as 
nothing more or less than a system archive of object files that 
applications can include.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

Attachment: pgpr0ndTu3BUj.pgp
Description: PGP signature

Reply via email to