statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit 5499f01860c286ba5e61ea24aa9ad691692d3e9a
parent 10936d4339bce4f7d967d8bbc9fd1029f7dc12ec
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 24 Oct 2020 12:10:59 +0200

Only enable FORTIFY_SOURCE level 2 for release builds.

Diffstat:
MCMakeLists.txt | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -50,7 +50,8 @@ if(NOT HAVE_PLEDGE) set (SRC ${SRC} compat/pledge.c) endif() -add_definitions(-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c99 -pedantic) +set(CMAKE_C_FLAGS_RELEASE "-D_FORTIFY_SOURCE=2") +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic) add_executable(statzone ${SRC}) install(TARGETS statzone DESTINATION ${CMAKE_INSTALL_BINDIR})