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 2164967ba..d66c4e63d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 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. * lib/setenv.h: Remove file. * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from diff --git a/build-aux/install-reloc b/build-aux/install-reloc index 199443868..91d79ac87 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 7c677b02c..ac9433bf6 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,11 +43,17 @@ # 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 #else diff --git a/lib/relocwrapper.c b/lib/relocwrapper.c index 76e355916..42c64cfb9 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 4a2faf5b4..e944e434d 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.11.0