2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

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

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.