automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: clean so_locations


From: Alexandre Duret-Lutz
Subject: FYI: clean so_locations
Date: 30 Apr 2002 23:59:12 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I'm checking this in.  This fixes two failures Nelson reported a
fortnight ago.

2002-04-30  Alexandre Duret-Lutz  <address@hidden>

        * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
        files.  Fix subobj9.test on OSF and IRIX.
        Reported by Nelson H. F. Beebe.

Index: lib/am/ltlib.am
===================================================================
RCS file: /cvs/automake/automake/lib/am/ltlib.am,v
retrieving revision 1.22
diff -u -r1.22 ltlib.am
--- lib/am/ltlib.am     5 Mar 2002 21:34:14 -0000       1.22
+++ lib/am/ltlib.am     30 Apr 2002 22:04:52 -0000
@@ -77,3 +77,12 @@
 .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

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]