From 3f443c986bb76f2197ea3cc64c094c5d8af609b3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 26 Dec 2007 16:25:28 +0100 Subject: [PATCH] Fix link error in relocatability wrappers, due to xalloc_die(). --- ChangeLog | 11 +++++++++++ build-aux/install-reloc | 1 - lib/progreloc.c | 10 ++++++++-- lib/relocwrapper.c | 6 +++--- modules/relocatable-prog-wrapper | 2 -- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2164967bae..d66c4e63db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-12-24 Bruno Haible + + 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 Левашев Иван . + 2007-12-24 Bruno Haible Split setenv module into setenv and unsetenv. Get rid of setenv.h. diff --git a/build-aux/install-reloc b/build-aux/install-reloc index 199443868a..91d79ac877 100755 --- a/build-aux/install-reloc +++ b/build-aux/install-reloc @@ -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 \ diff --git a/lib/progreloc.c b/lib/progreloc.c index 7c677b02ce..ac9433bf6b 100644 --- a/lib/progreloc.c +++ b/lib/progreloc.c @@ -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 , 2003. This program is free software: you can redistribute it and/or modify @@ -43,10 +43,16 @@ # include #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 diff --git a/lib/relocwrapper.c b/lib/relocwrapper.c index 76e3559167..42c64cfb9a 100644 --- a/lib/relocwrapper.c +++ b/lib/relocwrapper.c @@ -19,11 +19,11 @@ relocwrapper -> progname -> progreloc - -> xreadlink - -> areadlink - -> readlink + -> areadlink + -> readlink -> canonicalize-lgpl -> malloca + -> readlink -> relocatable -> setenv -> malloca diff --git a/modules/relocatable-prog-wrapper b/modules/relocatable-prog-wrapper index 4a2faf5b46..e944e434d3 100644 --- a/modules/relocatable-prog-wrapper +++ b/modules/relocatable-prog-wrapper @@ -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 -- 2.30.2