summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xbuild-aux/install-reloc4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c15c7b8..744e4cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-29 Bruno Haible <bruno@clisp.org>
+
+ * build-aux/install-reloc: If hard linking is not possible, use a
+ simple copy. Needed on Woe32 filesystems.
+
2005-12-19 Bruno Haible <bruno@clisp.org>
* build-aux/ltmain.sh: Upgrade to libtool-1.5.22.
diff --git a/build-aux/install-reloc b/build-aux/install-reloc
index 55ec38c..4dc5ffe 100755
--- a/build-aux/install-reloc
+++ b/build-aux/install-reloc
@@ -122,7 +122,9 @@ installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'`
func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" -D"EXEEXT=\"$exeext\"" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/progreloc.c "$srcdir"/xreadlink.c "$srcdir"/readlink.c "$srcdir"/canonicalize.c "$srcdir"/allocsa.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o "$destprog.wrapper$exeext" || exit $?
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
-ln -f "$destprog$exeext" "$destprog.bin$exeext" || exit 1
+ln -f "$destprog$exeext" "$destprog.bin$exeext" \
+ || { rm -f "$destprog.bin$exeext" && cp -p "$destprog$exeext" "$destprog.bin$exeext"; } \
+ || exit 1
mv "$destprog.wrapper$exeext" "$destprog$exeext" || exit 1
exit 0