From f089b26f1cbd528ae6e6987cdf41bd54b350df30 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 2 Mar 2007 01:48:42 +0000 Subject: [PATCH] Avoid leaving object files around. --- ChangeLog | 6 ++++++ build-aux/install-reloc | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca3c944e5..37bc7bee6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 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. 2007-03-01 Bruno Haible diff --git a/build-aux/install-reloc b/build-aux/install-reloc index c8ee8a048..9a526b9c9 100755 --- a/build-aux/install-reloc +++ b/build-aux/install-reloc @@ -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" \ -- 2.11.0