mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
e76ee47bce
* mdemo/Makefile.am: ../libltdl is within $(srcdir) * libltdl, Makefile.am: added libltdl (a system independent dlopen wrapper library extracted from mdemo) * ltmain.in: added -module flag for compiling and linking of modules. If enabled it compiles always both .o (with -DLT_RENAME) and .lo files * mdemo: modified mdemo to work with libltdl * tests/ltdl*: added tests for libltdl |
||
---|---|---|
.. | ||
.cvsignore | ||
configure.in | ||
foo1.c | ||
foo2.c | ||
foo.h | ||
libfoo1.sym | ||
libfoo2.sym | ||
main.c | ||
Makefile.am | ||
README |
This is GNU modular hell, an example package that uses GNU libtool with an Automake-generated environment to build two simple libraries and programs. It demonstrates how to build both dynamic and static libraries that can be dlopened. You'll need a wrapper (libltdl) for your dlopen functions. For static libraries we prefix all non-static symbols with libname___ using the LTEXP(symbol) macro. When dlopening these static libraries, we cut the prefix off to get the real name.