Merge branch 'fanf-avoid-fortify-source-redefinition' into 'main'

Avoid redefining _FORTIFY_SOURCE

See merge request isc-projects/bind9!7539
This commit is contained in:
Tony Finch 2023-02-16 13:43:56 +00:00
commit 97663836ea

View file

@ -134,8 +134,9 @@ STD_LDFLAGS=""
# ... except in test code
TEST_CFLAGS="-Wno-vla"
# Fortify the sources by default
STD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
# Fortify the sources by default (we undefine the macro first in case
# the compiler has a different built-in setting)
STD_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
#
# Additional compiler settings.