commit 5254198e2e439cf7ec24c0652ae5d7b9baee911f
parent 982cf6de98c8ba7f6ff68e66ecc2e687c10c2400
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 11 Oct 2020 09:37:26 +0200
Enable FORTIFY_SOURCE level 2.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -45,7 +45,7 @@ if(NOT HAVE_STRTONUM)
set (SRC ${SRC} compat/strtonum.c)
endif()
-add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic)
+add_definitions(-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c99 -pedantic)
add_executable(ansilove ${SRC})
target_link_libraries(ansilove ${ANSILOVE_LIBRARIES} m)