Re: only installing shared versions of some libs
That's not the correct way to do that. Yes, libtool is a prerequisite and you need -shared, but it should be in _LDFLAGS. But more importantly you want -module and -avoid-version. My Autotools Mythbuster guide has a section dedicated to building plugins: https://www.flameeyes.eu/autotools-mythbuster/libtool/plugins.html Have fun. Diego Elio Pettenò — Flameeyes flamee...@flameeyes.eu — http://blog.flameeyes.eu/ On Tue, Dec 10, 2013 at 10:02 AM, Václav Zeman wrote: > On 10 December 2013 09:47, Daniel Pocock wrote: > > > > > > I've recently adapted a project to support DSO plugins/modules > > > > The existing project includes normal libraries and binaries. In a > > normal build, we want to > > > > a) build and install the shared and static versions of the normal > libraries > > > > b) only install the shared versions of the plugins > > > > I don't mind whether static versions of the plugins are built (we don't > > currently use them) but I would prefer that "make install" does not > > install them > > > > Can anybody comment on the best way to do this? The Makefile.am is > > linked from here (repro/plugins/example/Makefile.am): > > > > http://list.resiprocate.org/archive/resiprocate-commit/msg07875.html > > This is completely untested suggestion: > > I am assuming you are using Libtool as well. Given the Libtool[1] and > Automake manuals, I think it might be possible to do what you want by > modifying libexample_la_CXXFLAGS (or similar appropriate) variable to > add Libtool's -shared flag, which, I think, should/could do what you > want. > > [1]: > http://www.gnu.org/software/libtool/manual/html_node/Compile-mode.html#Compile-mode > [2]: > http://www.gnu.org/software/automake/manual/html_node/Libtool-Flags.html > > -- > VZ > >
Re: only installing shared versions of some libs
On 10 December 2013 09:47, Daniel Pocock wrote: > > > I've recently adapted a project to support DSO plugins/modules > > The existing project includes normal libraries and binaries. In a > normal build, we want to > > a) build and install the shared and static versions of the normal libraries > > b) only install the shared versions of the plugins > > I don't mind whether static versions of the plugins are built (we don't > currently use them) but I would prefer that "make install" does not > install them > > Can anybody comment on the best way to do this? The Makefile.am is > linked from here (repro/plugins/example/Makefile.am): > > http://list.resiprocate.org/archive/resiprocate-commit/msg07875.html This is completely untested suggestion: I am assuming you are using Libtool as well. Given the Libtool[1] and Automake manuals, I think it might be possible to do what you want by modifying libexample_la_CXXFLAGS (or similar appropriate) variable to add Libtool's -shared flag, which, I think, should/could do what you want. [1]: http://www.gnu.org/software/libtool/manual/html_node/Compile-mode.html#Compile-mode [2]: http://www.gnu.org/software/automake/manual/html_node/Libtool-Flags.html -- VZ
only installing shared versions of some libs
I've recently adapted a project to support DSO plugins/modules The existing project includes normal libraries and binaries. In a normal build, we want to a) build and install the shared and static versions of the normal libraries b) only install the shared versions of the plugins I don't mind whether static versions of the plugins are built (we don't currently use them) but I would prefer that "make install" does not install them Can anybody comment on the best way to do this? The Makefile.am is linked from here (repro/plugins/example/Makefile.am): http://list.resiprocate.org/archive/resiprocate-commit/msg07875.html