Avoid leaving object files around.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Mar 2007 01:48:42 +0000 (01:48 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Mar 2007 01:48:42 +0000 (01:48 +0000)
ChangeLog
build-aux/install-reloc

index ca3c944e51f36b0dcd100cd3e6a146384621955a..37bc7bee668a7f9187978f9e9accff478104f668 100644 (file)
--- 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.
index c8ee8a048d32e89ffc9a6992c92884c1b3917006..9a526b9c9b8dc6ddacc404cf7ae83b0d87e2d1d6 100755 (executable)
@@ -140,8 +140,21 @@ func_verbose $compile_command \
              "$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" \