bug-libtool
[Top][All Lists]
Advanced

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

Re: Cannot avoid libtool producing static library and la file for a plug


From: Stefan Kost
Subject: Re: Cannot avoid libtool producing static library and la file for a plugin
Date: Wed, 03 Sep 2008 17:29:23 +0300
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Ralf Wildenhues schrieb:

> Hi Stefan,
>
> * Stefan Kost wrote on Tue, Sep 02, 2008 at 09:04:35PM CEST:
>> I am using this in my Makefile.am for plugins
>>
>> lib_LTLIBRARIES = libabc.la
>> libabc_la_LDFLAGS = -module -avoid-version
>>
>> This correctly avoid creating version link. Now I've also tried to add 
>> "-shared" to libabc_la_LDFLAGS, because for the plugin I don't need .a 
>> files. It does not make sense to link against them. For the same reason 
>> installing the .la file is not useful.
>
> Both do make sense if you allow for preopened modules (see the manual
> for details).
Are your reffering to "10.2 Dlpreopening" - I don't want to do that.

>
>> I can use AC_DISABLE_STATIC in configure.ac to disable making static 
>> libs. But that wpould be project wide.
>>
>> I am using this version of libtool:
>> ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)
>
> Update, please.
>
> You can try
>   libabc_la_LIBTOOLFLAGS = --tag=disable-static
I've installed 2.2.4. no idea why all my distributions still stick to
1.5.26. I've installed libtool to /usr/local and bootstapped with
ACLOCAL_FLAGS="-I /usr/local/share/aclocal" ./autoregen.sh
Build works, but *.la and *.a files are still installed. Please let me
know, if there is something else I could try.

Thanks or your prompt help
Stefan

>
> Cheers,
> Ralf





reply via email to

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