mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
316ebb4d2d
* tests/mdemo-exec, tests/mdemo-inst: pass the library names to the program |
||
---|---|---|
.. | ||
.cvsignore | ||
configure.in | ||
foo1.c | ||
foo2.c | ||
foo.h | ||
libfoo1.sym | ||
libfoo2.sym | ||
ltdl.c | ||
ltdl.h | ||
ltdls.c | ||
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 need a wrapper (ltdl.c and ltdls.c) 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.