Fix link error in relocatability wrappers, due to xalloc_die().
authorBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:25:28 +0000 (16:25 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:25:28 +0000 (16:25 +0100)
ChangeLog
build-aux/install-reloc
lib/progreloc.c
lib/relocwrapper.c
modules/relocatable-prog-wrapper

index 2164967..d66c4e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2007-12-24  Bruno Haible  <bruno@clisp.org>
 
+       Fix link error due to xalloc_die().
+       * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
+       of xreadlink.
+       * lib/relocwrapper.c: Update comments.
+       * build-aux/install-reloc: Remove xreadlink.c from file list.
+       * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
+       xreadlink.c.
+       Reported by Левашев Иван <octagram@bluebottle.com>.
+
+2007-12-24  Bruno Haible  <bruno@clisp.org>
+
        Split setenv module into setenv and unsetenv. Get rid of setenv.h.
        * lib/setenv.h: Remove file.
        * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
index 1994438..91d79ac 100755 (executable)
@@ -131,7 +131,6 @@ func_verbose $compile_command \
              "$srcdir"/relocwrapper.c \
              "$srcdir"/progname.c \
              "$srcdir"/progreloc.c \
-             "$srcdir"/xreadlink.c \
              "$srcdir"/areadlink.c \
              "$srcdir"/readlink.c \
              "$srcdir"/canonicalize-lgpl.c \
index 7c677b0..ac9433b 100644 (file)
@@ -1,5 +1,5 @@
 /* Provide relocatable programs.
-   Copyright (C) 2003-2006 Free Software Foundation, Inc.
+   Copyright (C) 2003-2007 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
 # include <windows.h>
 #endif
 
-#include "xreadlink.h"
 #include "canonicalize.h"
 #include "relocatable.h"
 
 #ifdef NO_XMALLOC
+# include "areadlink.h"
+# define xreadlink areadlink
+#else
+# include "xreadlink.h"
+#endif
+
+#ifdef NO_XMALLOC
 # define xmalloc malloc
 # define xstrdup strdup
 #else
index 76e3559..42c64cf 100644 (file)
    relocwrapper
     -> progname
     -> progreloc
-        -> xreadlink
-           -> areadlink
-              -> readlink
+        -> areadlink
+           -> readlink
         -> canonicalize-lgpl
            -> malloca
+           -> readlink
     -> relocatable
     -> setenv
        -> malloca
index 4a2faf5..e944e43 100644 (file)
@@ -8,8 +8,6 @@ lib/relocwrapper.c
 lib/progname.h
 lib/progname.c
 lib/progreloc.c
-lib/xreadlink.h
-lib/xreadlink.c
 lib/areadlink.h
 lib/areadlink.c
 lib/readlink.c