On Jan 25, 2001, Bob Friesenhahn <[EMAIL PROTECTED]> wrote:

> I notice that the distclean target in the libltdl directory fails to
> remove libltdlc.la.  This is a bug.

The problem is that libltdlc.la is conditionally built.  Even though
the conditions are not met by default (which causes `make clean' to
not remove it), the libtool testsuite explicitly builds it, and,
because the rules to build it are not conditional, it works.

automake should probably clean files for which build rules are
created regardless of their building conditions being met.

Meanwhile, I'm checking this in in all active branches.

Index: ChangeLog
from  Alexandre Oliva  <[EMAIL PROTECTED]>

	* libltdl/Makefile.am (CLEANFILES): Clean conditionally-built
	libraries.

Index: libltdl/Makefile.am
===================================================================
RCS file: /home/cvs/libtool/libltdl/Makefile.am,v
retrieving revision 1.39
diff -u -p -r1.39 Makefile.am
--- libltdl/Makefile.am 2000/11/21 08:53:34 1.39
+++ libltdl/Makefile.am 2001/01/29 01:58:05
@@ -13,6 +13,10 @@ if CONVENIENCE_LTDL
 noinst_LTLIBRARIES = libltdlc.la
 endif
 
+## Make sure these will be cleaned even when they're not built by
+## default.
+CLEANFILES = libltdl.la libltdlc.la
+
 libltdl_la_SOURCES = ltdl.c
 libltdl_la_LDFLAGS = -no-undefined -version-info 3:0:0
 libltdl_la_LIBADD = $(LIBADD_DL)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to