summaryrefslogtreecommitdiff
path: root/build-aux/install-reloc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-02 01:48:42 +0000
committerBruno Haible <bruno@clisp.org>2007-03-02 01:48:42 +0000
commitf089b26f1cbd528ae6e6987cdf41bd54b350df30 (patch)
tree3ecff3c01464c0f1df86881ecc3bf3825ca0ea3f /build-aux/install-reloc
parent753de88e7b4d78cef19ec9df716bb7184ac702c4 (diff)
downloadgnulib-f089b26f1cbd528ae6e6987cdf41bd54b350df30.tar.gz
Avoid leaving object files around.
Diffstat (limited to 'build-aux/install-reloc')
-rwxr-xr-xbuild-aux/install-reloc17
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" \