files. Fix subobj9.test on OSF and IRIX.
Reported by Nelson H. F. Beebe.
+2002-04-30 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
+ files. Fix subobj9.test on OSF and IRIX.
+ Reported by Nelson H. F. Beebe.
+
2002-04-26 Tom Tromey <tromey@redhat.com>
* lib/am/dejagnu.am (distclean-DEJAGNU): New target.
- For Debian bug 14421.
+ For Debian bug 144221.
2002-04-26 Alexandre Duret-Lutz <duret_g@epita.fr>
.PHONY clean-am: clean-%DIR%LTLIBRARIES
clean-%DIR%LTLIBRARIES:
-test -z "$(%DIR%_LTLIBRARIES)" || rm -f $(%DIR%_LTLIBRARIES)
+## `so_locations' files are created by some linkers (IRIX, OSF) when
+## building a shared object. Libtool places these files in the
+## directory where the shared object is created.
+ @list='$(%DIR%_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test -z "$dir" && dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done