here, with directories where .la files are built...
(handle_single_transform_list): ... not here with directories
where .lo files are built.
* tests/libtool3.test: Build a library in a subdirectory to
check for this.
Reported by Peter Gavin.
2002-09-22 Alexandre Duret-Lutz <duret_g@epita.fr>
+ * automake.in (handle_ltlibraries): Fill $libtool_clean_directories
+ here, with directories where .la files are built...
+ (handle_single_transform_list): ... not here with directories
+ where .lo files are built.
+ * tests/libtool3.test: Build a library in a subdirectory to
+ check for this.
+ Reported by Peter Gavin.
+
* tests/cond5.test: Give more time to automake.
Reported by Art Haas.
Per Cederqvist ceder@lysator.liu.se
Per Oyvind Hvidsten poeh@enter.vg
Peter Breitenlohner peb@mppmu.mpg.de
+Peter Gavin pgavin@debaser.kicks-ass.org
Peter Mattis petm@scam.XCF.Berkeley.EDU
Peter Muir iyhi@yahoo.com
Petter Reinholdtsen pere@hungry.com
{
(my $xobj = $object) =~ s,lo$,\$(OBJEXT),;
$compile_clean_files{$xobj} = MOSTLY_CLEAN;
-
- $libtool_clean_directories{$directory} = 1;
}
push (@dep_list, require_build_directory ($directory));
# make sure this directory will exist.
my $dirstamp = require_build_directory_maybe ($onelib);
+ # Remember to cleanup .libs/ in this directory.
+ my $dirname = dirname $onelib;
+ $libtool_clean_directories{$dirname} = 1;
+
$output_rules .= &file_contents ('ltlibrary',
('LTLIBRARY' => $onelib,
'XLTLIBRARY' => $xlib,
required='libtoolize gcc'
. ./defs || exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
AM_PROG_LIBTOOL
END
cat > Makefile.am << 'END'
-lib_LTLIBRARIES = lib0.la
+lib_LTLIBRARIES = lib0.la liba/liba.la
lib0_la_SOURCES = 0.c
+liba_liba_la_SOURCES = liba/a.c
bin_PROGRAMS = 1
1_SOURCES = 1.c
-1_LDADD = lib0.la
+1_LDADD = lib0.la $(top_builddir)/liba/liba.la
END
+mkdir liba
+
cat > 0.c << 'END'
int
zero (void)
}
END
-set -e
+cat > liba/a.c << 'END'
+int
+a (void)
+{
+ return 'a';
+}
+END
# Use --copy to workaround a bug in Cygwin's `cp -p' during distcheck.
# (This bug is already exhibited by subobj9.test.) In brief: Cygwin's