]> git.ipfire.org Git - thirdparty/libtool.git/commit
Factor out the individual loaders, in preparation for preloading
authorGary V. Vaughan <gary@gnu.org>
Tue, 13 Apr 2004 14:31:05 +0000 (14:31 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 13 Apr 2004 14:31:05 +0000 (14:31 +0000)
commit5dfb0ce7e2d631e803ae5d890d4a03a0aea6a1b1
tree5146fc3514b9ea5c21d8babe16ec5d19710baeac
parent8c775c544a53839b1fc984e1b5a4d14eb3dc877c
Factor out the individual loaders, in preparation for preloading
them as libtool modules.  Currently loader-preopen.c is linked
unconditionally and other appropriate loaders discovered by
AC_LTDL_DLLIB are built and linked in:

* libltdl/Makefile.am (libltdl_la_SOURCES): Add loader-preopen
module.
* m4/ltdl.m4 (AC_LTDL_DLLIB): Use AC_LIBOBJ to add appropriate
loaders to libltdl.
* libltdl/lt_system.h (LT_SCOPE): Moved to here.
* libltdl/ltdl.h (lt_dlloader, lt_user_data, lt_module)
(lt_module_open, lt_module_close, lt_find_sym, lt_dlloader_exit)
(struct lt_user_dlloader, lt_dlloader_next, lt_dlloader_find)
(lt_dlloader_name, lt_dlloader_data, lt_dlloader_add)
(lt_dlloader_remove): Moved declarations...
* libltdl/lt_loader.h: ...to here.
* libltdl/ltdl.c: Include lt_loader.h.  Move loader implementation
code from here...
* libltdl/loader-dld_link.c, libltdl/loader-dlopen.c,
libltdl/loader-dyld.c, libltdl/loader-load_add_on.c,
libltdl/loader-loadlibrary.c, libltdl/loader-preopen.c,
libltdl/loader-shl_load.c: ...to here.
* tests/cdemo/Makefile.am, tests/demo/Makefile.am,
tests/depdemo/Makefile.am, tests/f77demo/Makefile.am,
tests/mdemo/Makefile.am, tests/mdemo2/Makefile.am,
tests/pdemo/Makefile.am, tests/tagdemo/Makefile.am (AM_CPPFLAGS):
Add -I$(top_srcdir)/../.. so that libltdl include files can be
written as #include <libltdl/lt_dlloader.h> and found correctly.
22 files changed:
ChangeLog
libltdl/Makefile.am
libltdl/loader-dld_link.c [new file with mode: 0644]
libltdl/loader-dlopen.c [new file with mode: 0644]
libltdl/loader-dyld.c [new file with mode: 0644]
libltdl/loader-load_add_on.c [new file with mode: 0644]
libltdl/loader-loadlibrary.c [new file with mode: 0644]
libltdl/loader-preopen.c [new file with mode: 0644]
libltdl/loader-shl_load.c [new file with mode: 0644]
libltdl/lt__alloc.h
libltdl/lt_system.h
libltdl/ltdl.c
libltdl/ltdl.h
m4/ltdl.m4
tests/cdemo/Makefile.am
tests/demo/Makefile.am
tests/depdemo/Makefile.am
tests/f77demo/Makefile.am
tests/mdemo/Makefile.am
tests/mdemo2/Makefile.am
tests/pdemo/Makefile.am
tests/tagdemo/Makefile.am