# HG changeset patch # User Bruno Haible # Date 1172800122 0 # Node ID cf9fed416d8c624b08ad61287900946b7813c865 # Parent ca03b672badc269e331d51cfc990f84c8d9acde1 Avoid leaving object files around. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-01 Bruno Haible + + * build-aux/install-reloc: Remove object files left over by some + compilers. + Reported by Ralf Wildenhues. + 2007-03-01 Bruno Haible * build-aux/install-reloc: Break long lines. diff --git a/build-aux/install-reloc b/build-aux/install-reloc --- 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" \