mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-21 06:59:11 +08:00
8683e2f1b4
programs, libraries and objects, allow linking of shared libraries against static libraries/objects on platforms that support it but print a warning, fix some typos * partially revert my previous change and update only copyright notices of files that were actually modified * NEWS: update * libltdl/Makefile.am: version number was wrong * libltdl/ltdl.c (tryall_dlopen): revert Gary's change since it breaks dlpreopening * ltdl.m4: ditto * libltdl/ltdl.c (sys_search_path): search in the system default library search path, too * ltdl.m4 (AC_LTDL_SYSSEARCHPATH): extract the path * libltdl/ltdl.c (find_module): remove bogus file_not_found_error * libltdl/ltdl.c (load_deplibs): implement loading of dependency libraries * libltdl/ltdl.c (unload_deplibs): implement unloading of dependency libraries * libltdl/ltdl.c (lt_dlexit): correctly close all modules and their dependencies * libltdl/ltdl.c (lt_dlforeach): new function * libltdl/ltdl.h: ditto * doc/libtool.texi (using libltdl): document it * libtool.m4: reformatting, only add -I$topsrc_dir/libltdl to INCLTDL * libtoolize.in: reformatting * ltconfig.in: reformatting * ltmain.in: reformatting * mdemo/configure.in: AC_SUBST INCLTDL * mdemo/Makefile.am: use INCLTDL * tests/Makefile.am: reexport OBJEXT and EXEEXT * tests/dryrun.test: use them for building main.obj and mdemo.exe
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = no-dependencies foreign
|
|
|
|
INCLUDES = $(INCLTDL)
|
|
|
|
EXTRA_DIST = acinclude.m4
|
|
|
|
lib_LTLIBRARIES = foo1.la libfoo2.la
|
|
|
|
foo1_la_SOURCES = foo1.c
|
|
foo1_la_LIBADD = $(LIBM)
|
|
foo1_la_LDFLAGS = -no-undefined -module -avoid-version
|
|
|
|
libfoo2_la_SOURCES = foo2.c
|
|
libfoo2_la_LIBADD = $(LIBM)
|
|
libfoo2_la_LDFLAGS = -no-undefined -module -export-symbols-regex "libfoo2.*"
|
|
|
|
noinst_HEADERS = foo.h
|
|
|
|
bin_PROGRAMS = mdemo mdemo.static
|
|
|
|
## use @LIBLTDL@ because some broken makes do not accept macros in targets
|
|
## we can only do this because our LIBLTDL does not contain ${top_builddir}
|
|
@LIBLTDL@: ../libtool ../libltdl/libtool ../libltdl/config.h \
|
|
$(srcdir)/../libltdl/ltdl.c $(srcdir)/../libltdl/ltdl.h
|
|
(cd ../libltdl; $(MAKE) `echo $(LIBLTDL) | sed 's,.*\.\./libltdl/,,g'`)
|
|
# Without the following line, the check may fail if libltdl/libtool is
|
|
# removed after libltdl is configured
|
|
../libltdl/libtool ../libltdl/config.h:
|
|
|
|
# Create a version of mdemo that does dlopen.
|
|
mdemo_SOURCES = main.c
|
|
mdemo_LDFLAGS = -export-dynamic
|
|
## The quotes around -dlopen below fool automake into accepting it
|
|
mdemo_LDADD = @LIBLTDL@ "-dlopen" self \
|
|
"-dlopen" foo1.la "-dlopen" libfoo2.la
|
|
mdemo_DEPENDENCIES = @LIBLTDL@ foo1.la libfoo2.la
|
|
|
|
# Create a statically linked version of mdemo.
|
|
mdemo_static_SOURCES = $(mdemo_SOURCES)
|
|
mdemo_static_LDFLAGS = $(STATIC) $(mdemo_LDFLAGS)
|
|
mdemo_static_LDADD = $(mdemo_LDADD)
|
|
mdemo_static_DEPENDENCIES = $(mdemo_DEPENDENCIES)
|
|
|
|
$(OBJECTS): libtool
|
|
libtool: $(LIBTOOL_DEPS)
|
|
$(SHELL) ./config.status --recheck
|