mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-25 16:00:24 +08:00
* mdemo/configure.in (AC_C_CONST): ditto * libltdl/configure.in (AC_C_CONST, AC_C_INLINE): ditto * libltdl/ltdl.c (LTDL_FILENAME_MAX): use FILENAME_MAX if defined (FILENAME_MAX): replace all explicit uses with LTDL_FILENAME_MAX (presym_free_symlists, trim): don't return void, for portability (lt_dlgetsearchpath): replace (void) with __P((void))
This is mdemo, an example package that uses GNU libtool with an Automake-generated environment to build two simple modules and a program. It demonstrates how to build both dynamic and static libraries that can be dlopened. mdemo uses libtool's portable dlopen wrapper called "libltdl". All exported symbols are prefixed with "libname_LTX_" to avoid symbols conflicts, especially when linking statically. libltdl will automatically cut the prefix off to get the real name.