bug-libtool
[Top][All Lists]
Advanced

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

Cannot avoid libtool producing static library and la file for a plugin


From: Stefan Kost
Subject: Cannot avoid libtool producing static library and la file for a plugin
Date: Tue, 02 Sep 2008 22:04:35 +0300
User-agent: Thunderbird 2.0.0.12 (X11/20071114)

hi,

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.

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)


I googled, read the docs [1] several time, but I can't figure it out. According to [2] -shared should be what I want. Bug or mistake on my side?

Stefan

[1] http://www.gnu.org/software/libtool/manual/libtool.html
[2] http://www.gnu.org/software/libtool/manual/libtool.html#Link-mode




reply via email to

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