]> sourceware.org Git - glibc.git/commit
Do not use -Wp to disable fortify (BZ 31928)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 10 Sep 2024 12:22:17 +0000 (09:22 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 1 Oct 2024 11:44:40 +0000 (08:44 -0300)
commit127cefd84dc551a43d0ac58b4619503d04869042
treecf6d1e255d280933a84dece69b4020843ce49f8d
parent9dfea3de7f690bff70e3c6eb346b9ad082bb2e35
Do not use -Wp to disable fortify (BZ 31928)

The -Wp does not work properly if the compiler is configured to enable
fortify by default, since it bypasses the compiler driver (which defines
the fortify flags in this case).

This patch is similar to the one used on Ubuntu [1].

I checked with a build for x86_64-linux-gnu, i686-linux-gnu,
aarch64-linux-gnu, s390x-linux-gnu, and riscv64-linux-gnu with
gcc-13 that enables the fortify by default.

Co-authored-by: Matthias Klose <matthias.klose@canonical.com>
[1] https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/glibc/tree/debian/patches/ubuntu/fix-fortify-source.patch
Reviewed-by: DJ Delorie <dj@redhat.com>
configure
configure.ac
debug/Makefile
io/Makefile
stdio-common/Makefile
wcsmbs/Makefile
This page took 0.041895 seconds and 5 git commands to generate.