From 08814e90d18c849d1efb8e30b73cfdbf1d4c800c Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 30 Apr 2002 22:13:50 +0000 Subject: [PATCH] * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations files. Fix subobj9.test on OSF and IRIX. Reported by Nelson H. F. Beebe. --- ChangeLog | 8 +++++++- lib/am/ltlib.am | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c8dbdc88..e3886ec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,13 @@ +2002-04-30 Alexandre Duret-Lutz + + * 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 * lib/am/dejagnu.am (distclean-DEJAGNU): New target. - For Debian bug 14421. + For Debian bug 144221. 2002-04-26 Alexandre Duret-Lutz diff --git a/lib/am/ltlib.am b/lib/am/ltlib.am index 29a14731..d9044cc2 100644 --- a/lib/am/ltlib.am +++ b/lib/am/ltlib.am @@ -77,3 +77,12 @@ endif %?INSTALL% .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 -- 2.43.5