mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-12 14:06:37 +08:00
d4326213cb
(hell_LDFLAGS): added -export-dynamic and -dlopen (SUBDIRS, INCLUDES): added modules directory (foo1.c, foo2.c, foo.h, libfoo1.sym, libfoo2.sym): moved to modules * Makefile.am: ditto * tests/mdemo-exec.test, tests/mdemo-inst.test: libraries moved * mdemo/modules/Makefile.am: new file * */Makefile.am (AUTOMAKE_OPTIONS): added no-dependencies |
||
---|---|---|
.. | ||
modules | ||
.cvsignore | ||
configure.in | ||
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.