diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-02 01:48:42 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-02 01:48:42 +0000 |
commit | f089b26f1cbd528ae6e6987cdf41bd54b350df30 (patch) | |
tree | 3ecff3c01464c0f1df86881ecc3bf3825ca0ea3f /build-aux/install-reloc | |
parent | 753de88e7b4d78cef19ec9df716bb7184ac702c4 (diff) | |
download | gnulib-f089b26f1cbd528ae6e6987cdf41bd54b350df30.tar.gz |
Avoid leaving object files around.
Diffstat (limited to 'build-aux/install-reloc')
-rwxr-xr-x | build-aux/install-reloc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/build-aux/install-reloc b/build-aux/install-reloc index c8ee8a048d..9a526b9c9b 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" \ |