changeset 8280:cf9fed416d8c

Avoid leaving object files around.
author Bruno Haible <bruno@clisp.org>
date Fri, 02 Mar 2007 01:48:42 +0000
parents ca03b672badc
children 8dcf244ccec2
files ChangeLog build-aux/install-reloc
diffstat 2 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-01  Bruno Haible  <bruno@clisp.org>
+
+	* build-aux/install-reloc: Remove object files left over by some
+	compilers.
+	Reported by Ralf Wildenhues.
+
 2007-03-01  Bruno Haible  <bruno@clisp.org>
 
 	* build-aux/install-reloc: Break long lines.
--- a/build-aux/install-reloc
+++ b/build-aux/install-reloc
@@ -140,8 +140,21 @@
              "$srcdir"/setenv.c \
              "$srcdir"/strerror.c \
              "$srcdir"/c-ctype.c \
-             -o "$destprog.wrapper$exeext" \
-  || exit $?
+             -o "$destprog.wrapper$exeext"
+rc=$?
+# Clean up object files left over in the current directory by the native C
+# compilers on Solaris, HP-UX, OSF/1, IRIX.
+rm -f relocwrapper.o \
+      progname.o \
+      progreloc.o \
+      xreadlink.o \
+      canonicalize-lgpl.o \
+      allocsa.o \
+      relocatable.o \
+      setenv.o \
+      strerror.o \
+      c-ctype.o
+test $rc = 0 || exit $?
 
 # Rename $destprog.wrapper -> $destprog -> $destprog.bin.
 ln -f "$destprog$exeext" "$destprog.bin$exeext" \