bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

relocatable-prog-wrapper: Update after recent changes


From: Bruno Haible
Subject: relocatable-prog-wrapper: Update after recent changes
Date: Sun, 31 Jan 2021 13:10:25 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

The module 'relocatable-prog-wrapper' includes a flattened view of the
'canonicalize-lgpl' module. Since the 'canonicalize-lgpl' module has changed
a month ago, the 'relocatable-prog-wrapper' may produce compilation errors
on platforms where it is needed (AIX, Cygwin, as well as older versions
of other platforms).

This series of patches updates the 'relocatable-prog-wrapper' module.
Since build-aux/install-reloc compiles all of its files unconditionally
(no conditional AC_LIBOBJ), files such as lib/malloc.c now need a #include
guard.


2021-01-31  Bruno Haible  <bruno@clisp.org>

        relocatable-prog-wrapper: Update after recent changes.
        * lib/relocwrapper.c: Update comments.
        * modules/relocatable-prog-wrapper (Files): Add lib/scratch_buffer.h,
        lib/malloc/scratch_buffer*, lib/malloc.c, lib/realloc.c, lib/free.c,
        lib/mempcpy.c, lib/rawmemchr.c, m4/lstat.m4. Remove lib/lstat.c.
        (Depends-on): Add c99, eloop-threshold, fcntl-h, idx, intprops,
        libc-config, stddef, sys_stat. Remove alloca-opt.
        (configure.ac): Invoke gl_FUNC_MALLOC_POSIX, gl_FUNC_REALLOC_POSIX,
        gl_FUNC_FREE, gl_FUNC_MEMPCPY, gl_FUNC_RAWMEMCHR.
        * lib/canonicalize-lgpl.c (memmove): Undefine in the relocwrapper.
        * build-aux/install-reloc (func_create_wrapper): Compile also
        malloc/scratch_buffer_*.c, malloc.c, realloc.c, free.c, mempcpy.c,
        rawmemchr.c. Don't compile lstat.c.

        Make it possible to compile rawmemchr.c separately, unconditionally.
        * lib/rawmemchr.c: Don't define rawmemchr if not needed.

        Make it possible to compile mempcpy.c separately, unconditionally.
        * lib/mempcpy.c: Don't define mempcpy if not needed.

        Make it possible to compile free.c separately, unconditionally.
        * m4/free.m4 (gl_FUNC_FREE): Define HAVE_FREE_POSIX.
        * lib/free.c: Don't define rpl_free if not needed.

        Make it possible to compile realloc.c separately, unconditionally.
        * modules/realloc-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/realloc.c: Don't define rpl_realloc if not needed.

        Make it possible to compile malloc.c separately, unconditionally.
        * modules/malloc-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/malloc.c: Don't define rpl_malloc if not needed.

Attachment: 0001-Make-it-possible-to-compile-malloc.c-separately-unco.patch
Description: Text Data

Attachment: 0002-Make-it-possible-to-compile-realloc.c-separately-unc.patch
Description: Text Data

Attachment: 0003-Make-it-possible-to-compile-free.c-separately-uncond.patch
Description: Text Data

Attachment: 0004-Make-it-possible-to-compile-mempcpy.c-separately-unc.patch
Description: Text Data

Attachment: 0005-Make-it-possible-to-compile-rawmemchr.c-separately-u.patch
Description: Text Data

Attachment: 0006-relocatable-prog-wrapper-Update-after-recent-changes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]