libtool-patches
[Top][All Lists]
Advanced

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

Re: ltmain.sh patch: -all-dynamic option


From: Karl-Andre' Skevik
Subject: Re: ltmain.sh patch: -all-dynamic option
Date: Sat, 06 Nov 2010 12:29:09 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/22.3 (berkeley-unix)

Ralf Wildenhues <address@hidden> writes:

> * Karl-Andre' Skevik wrote on Tue, Nov 02, 2010 at 09:26:33AM CET:
>> Ralf Wildenhues writes:
>> > * Karl-Andre' Skevik wrote on Sat, Oct 30, 2010 at 11:46:38AM CEST:
>> >> I have an application that builds a library for use with LD_PRELOAD,
>> >> which should only be built dynamically. I have used a modification
>> >> like the one below to achieve this:
>
>> > Thanks for the report and patch.  What does -all-dynamic bring you that
>> > either of the following won't?
>
>> > - configure with --disable-static,
>> 
>> The package also builds normal libraries that should be build both as
>> static and dynamic, so this option can unfortunately not be used.
>
> OK.
>
>> > - add --tag=disable-static to AM_LIBTOOLFLAGS or libfoo_la_LIBTOOLFLAGS.
>> 
>> At least with libtool 1.5.26 this does not appear to have any effect,
>> a static library still gets built and installed.
>
> Libtool 1.5.26 is old, and the 1.5 branch not maintained any more.
> We have arrived at 2.4, please consider updating.
>
> That said, I *think* that this should have worked with 1.5.x already;
> but you need Automake >= 1.10 for support of the *_LIBTOOLFLAGS special
> variables.  I'm guessing that you have an older Automake, because the
> following minimal example gets me a libfoo that is not built statically.
>
> Please report whether it does for you, and if you get a static libfoo.a,
> please try to modify the example so it exposes the failure in your
> setup.

Hello, with automake 1.10 that appears to work, thank you for your help.
I tested previously with automake 1.9.

Regards,

Karl-Andre' Skevik
Inferno Nettverk A/S



reply via email to

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