]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/Makefile.am, libltdl/configure.in, mdemo/Makefile.am:
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 8 Mar 1999 17:40:42 +0000 (17:40 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 8 Mar 1999 17:40:42 +0000 (17:40 +0000)
libltdl must not be renamed; if there's a problem with the install
option, let's fix it, not just work around it by breaking code of
users of the convenience library

ChangeLog
libltdl/Makefile.am
libltdl/configure.in
mdemo/Makefile.am

index 703ca7bdca17cc8879276329b6e899eabbf32936..740eca05663362da3c3229dbc2e0775b17624ca5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-03-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libltdl/Makefile.am, libltdl/configure.in, mdemo/Makefile.am:
+       libltdl must not be renamed; if there's a problem with the install 
+       option, let's fix it, not just work around it by breaking code of 
+       users of the convenience library
+
        * tests/build-relink.test: link broken libhello.la with at least
        one libtool object
 
index 9f7468ebda0d6b5717c3f75665737afd6025de45..472ab0510e967694daa637cd6a25c38ecf2c0042 100644 (file)
@@ -10,18 +10,21 @@ else
 noinst_HEADERS = ltdl.h
 endif
 
-EXTRA_LTLIBRARIES = libltdl.la
-
-lib_LTLIBRARIES = @LIBLIBS@
-noinst_LTLIBRARIES = libltdlc.la
+noinst_LTLIBRARIES = libltdl.la
 
 libltdl_la_SOURCES = ltdl.c
-libltdl_la_LDFLAGS = $(LTDL_VERSION) -rpath $(libdir) 
 libltdl_la_LIBADD = $(LIBADD_DL)
 
-libltdlc_la_SOURCES = $(libltdl_la_SOURCES)
-libltdlc_la_LDFLAGS =
-libltdlc_la_LIBADD = $(libltdl_la_LIBADD)
+lib_LTLIBRARIES = @LIBLIBS@
+EXTRA_LTLIBRARIES =
+
+@TOINST@/libltdl.la: $(libltdl_la_OBJECTS) $(libltdl_la_DEPENDENCIES)
+       @test -d $(TOINST) || mkdir $(TOINST)
+       $(LINK) -o $@ $(libltdl_la_OBJECTS) \
+               -rpath $(libdir) $(LTDL_VERSION) $(libltdl_la_LIBADD)
+
+distclean-local:
+       test -z $(TOINST) || rm -rf $(TOINST)
 
 libtool: $(LIBTOOL_DEPS)
        $(SHELL) ./config.status --recheck
index d367f63a15970077e1b5f06b6cfe9d3895e8694c..3785958af628b75f9fc9f1726a61b9da85a7b9f9 100644 (file)
@@ -6,11 +6,14 @@ AM_CONFIG_HEADER(config.h)
 
 AM_MAINTAINER_MODE
 
+TOINST=toinst
+AC_SUBST(TOINST)
+
 AC_ARG_ENABLE(ltdl-install,
   [--enable-ltdl-install     install libltdl])
 AM_CONDITIONAL(INSTALL_LTDL, test x$enable_ltdl_install = xyes)
 if test x$enable_ltdl_install = xyes; then
-  LIBLIBS=libltdl.la
+  LIBLIBS=$TOINST/libltdl.la
 else
   LIBLIBS=
 fi
index 53aa4955421ed2fd385f8173a654b838dfa225b3..e2b62f446ac15782e8b5c8d8eb915018aa00ea93 100644 (file)
@@ -18,9 +18,9 @@ noinst_HEADERS = foo.h
 
 bin_PROGRAMS = mdemo mdemo.static
 
-../libltdl/libltdlc.la: ../libtool ../libltdl/libtool \
+../libltdl/libltdl.la: ../libtool ../libltdl/libtool \
     $(srcdir)/../libltdl/ltdl.c $(srcdir)/../libltdl/ltdl.h
-       (cd ../libltdl; $(MAKE) libltdlc.la)
+       (cd ../libltdl; $(MAKE) libltdl.la)
 # Without the following line, the check may fail if libltdl/libtool is
 # removed after libltdl is configured
 ../libltdl/libtool:
@@ -30,9 +30,9 @@ mdemo_SOURCES = main.c
 mdemo_LDFLAGS = -export-dynamic ## FIXME: remove this when libtool and libltdl
 ## handle dependencies of modules
 ## The quotes around -dlopen below fool automake into accepting it
-mdemo_LDADD = ../libltdl/libltdlc.la "-dlopen" self \
+mdemo_LDADD = ../libltdl/libltdl.la "-dlopen" self \
                "-dlopen" foo1.la "-dlopen" libfoo2.la
-mdemo_DEPENDENCIES = ../libltdl/libltdlc.la foo1.la libfoo2.la
+mdemo_DEPENDENCIES = ../libltdl/libltdl.la foo1.la libfoo2.la
 
 # Create a statically linked version of mdemo.
 mdemo_static_SOURCES = $(mdemo_SOURCES)