mbox series

[0/3] Allow glibc to build with gcc that defaults to fortify, LFS, and 64-bit time_t

Message ID 20240910122244.1995107-1-adhemerval.zanella@linaro.org
Headers show
Series Allow glibc to build with gcc that defaults to fortify, LFS, and 64-bit time_t | expand

Message

Adhemerval Zanella Sept. 10, 2024, 12:22 p.m. UTC
Even though building glibc with fortify, LFS, and 64-bit time_t flags
are not supported, and the usual way is to patch the build system to
avoid it [1]; some systems do enable it by default (like Debian/Ubuntu),
and failing to build with such compiler increases the requirements on
how to proper build and tests glibc.

it also does not help newcomers when trying to build glibc, and it has
generated some questions on libc-help, along with the bug reports.

This patch aims to detect if the compiler defaults to invalid flags to
build glibc itself and disables it.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=31624

Adhemerval Zanella (3):
  Do not use -Wp to disable fortify (BZ 31928)
  Disable _FILE_OFFSET_BITS if the compiler defaults to it
  Disable _TIME_BITS if the compiler defaults to it

 Makeconfig            |  6 ++++
 configure             | 66 +++++++++++++++++++++++++++++++++++++++++--
 configure.ac          | 28 ++++++++++++++++--
 conform/Makefile      |  2 +-
 debug/Makefile        | 19 +++++++------
 io/Makefile           |  2 +-
 stdio-common/Makefile |  2 +-
 wcsmbs/Makefile       |  2 +-
 8 files changed, 110 insertions(+), 17 deletions(-)