Next: , Previous: , Up: Building a Shared Library   [Contents][Index]


8.3.6 Libtool Modules

These are libtool libraries meant to be dlopened. They are indicated to libtool by passing -module at link-time.

pkglib_LTLIBRARIES = mymodule.la
mymodule_la_SOURCES = doit.c
mymodule_LDFLAGS = -module

Ordinarily, Automake requires that a Library’s name starts with ‘lib’. However, when building a dynamically loadable module you might wish to use a "nonstandard" name.

If ‘mymodule_la_SOURCES’ is not specified, then it defaults to the single file mymodule.c (see Default _SOURCES).