summaryrefslogtreecommitdiff
path: root/lib/am/ltlib.am
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2002-04-30 22:13:50 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2002-04-30 22:13:50 +0000
commit08b53d8daf198e21d39801811bfe7cde46075b65 (patch)
treef1b7b2488502195731ced05b9b061464cb52be06 /lib/am/ltlib.am
parent4377206aeda46c357883b9b6cd5d3f2f120e2766 (diff)
downloadautomake-08b53d8daf198e21d39801811bfe7cde46075b65.tar.gz
* lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
files. Fix subobj9.test on OSF and IRIX. Reported by Nelson H. F. Beebe.
Diffstat (limited to 'lib/am/ltlib.am')
-rw-r--r--lib/am/ltlib.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/am/ltlib.am b/lib/am/ltlib.am
index 29a147312..d9044cc2d 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