]> Savannah Git Hosting - gnulib.git/commitdiff
relocatable-prog-wrapper: Fix breakage on Cygwin.
authorBruno Haible <bruno@clisp.org>
Sat, 19 Nov 2016 13:03:07 +0000 (14:03 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 19 Nov 2016 13:05:26 +0000 (14:05 +0100)
* modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
(Depends-on): Remove intprops.
* lib/relocwrapper.c: Update dependency tree.
(strerror): Undefine.
* build-aux/install-reloc (func_create_wrapper): Do not compile
strerror.c and strerror-override.c. Erase stat.o and lstat.o.

ChangeLog
build-aux/install-reloc
lib/relocwrapper.c
modules/relocatable-prog-wrapper

index c7bf5abc0d88a646a39a3d4928eacc15b3c31a6f..9582eb5381bff502cafcc44d4d9871de438e5781 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-11-19  Bruno Haible  <bruno@clisp.org>
+
+       relocatable-prog-wrapper: Fix breakage on Cygwin.
+       * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
+       (Depends-on): Remove intprops.
+       * lib/relocwrapper.c: Update dependency tree.
+       (strerror): Undefine.
+       * build-aux/install-reloc (func_create_wrapper): Do not compile
+       strerror.c and strerror-override.c. Erase stat.o and lstat.o.
+
 2016-11-19  Bruno Haible  <bruno@clisp.org>
 
        strerror: Make it compile in C++ mode.
index 979a056db6e63d7a1a9b48afe8057afc7266efc5..1a2b5a410fe09ac65968e82f57d2eaf018246a35 100755 (executable)
@@ -232,15 +232,13 @@ func_create_wrapper ()
                "$srcdir"/areadlink.c \
                "$srcdir"/careadlinkat.c \
                "$srcdir"/allocator.c \
-               "$srcdir"/strerror-override.c \
-               "$srcdir"/stat.c \
-               "$srcdir"/lstat.c \
                "$srcdir"/readlink.c \
+               "$srcdir"/stat.c \
                "$srcdir"/canonicalize-lgpl.c \
                "$srcdir"/malloca.c \
+               "$srcdir"/lstat.c \
                "$srcdir"/relocatable.c \
                "$srcdir"/setenv.c \
-               "$srcdir"/strerror.c \
                "$srcdir"/c-ctype.c \
                -o "$destprog.wrapper$exeext"
   rc=$?
@@ -253,11 +251,12 @@ func_create_wrapper ()
         careadlinkat.o \
         allocator.o \
         readlink.o \
+        stat.o \
         canonicalize-lgpl.o \
         malloca.o \
+        lstat.o \
         relocatable.o \
         setenv.o \
-        strerror.o \
         c-ctype.o
   test $rc = 0 || exit $?
   # Clean up debugging information left over by the native C compiler on MacOS X.
index 5eefa2be9511c64fc1f7194dca3567bae06654b8..69a6e982a76a2c181654ee71c18264e508edc3ff 100644 (file)
    relocwrapper
     -> progname
     -> progreloc
-        -> areadlink
-           -> careadlinkat
+       -> areadlink
+          -> careadlinkat
              -> allocator
-           -> readlink
-        -> canonicalize-lgpl
-           -> malloca
-           -> readlink
+          -> readlink
+             -> stat
+                -> dosname
+                -> pathmax
+                -> verify
+      -> canonicalize-lgpl
+         -> malloca
+         -> lstat
+         -> readlink
     -> relocatable
     -> setenv
        -> malloca
+    -> fprintf-posix [ignore, cut dependency tree here]
+    -> strerror [ignore, cut dependency tree here]
     -> c-ctype
 
    Macros that need to be set while compiling this file:
@@ -60,6 +67,7 @@
 
 /* Use the system functions, not the gnulib overrides in this file.  */
 #undef fprintf
+#undef strerror
 
 /* Return a copy of the filename, with an extra ".bin" at the end.
    More generally, it replaces "${EXEEXT}" at the end with ".bin${EXEEXT}".  */
index a75b4260983143df06e4d078d9e332223d705b85..50444b1a77eb74dc94b654143e63cb1538aaeb79 100644 (file)
@@ -15,9 +15,11 @@ lib/careadlinkat.c
 lib/allocator.h
 lib/allocator.c
 lib/readlink.c
+lib/stat.c
 lib/canonicalize-lgpl.c
 lib/malloca.h
 lib/malloca.c
+lib/lstat.c
 lib/relocatable.h
 lib/relocatable.c
 lib/setenv.c
@@ -43,7 +45,6 @@ stdint
 stdlib
 unistd
 environ
-intprops
 string
 verify