commit 4f9feca369789e2dc4e1236c26379755fd7da7fc
parent c8a7c68edc24af8b7f749a2881173e682c5c42d9
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 10 Oct 2020 20:03:33 +0200
Enable FORTIFY_SOURCE level 2.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -69,7 +69,7 @@ set(GEOIP2DIR ${CMAKE_INSTALL_PREFIX}/share/dbip
CACHE PATH "Path to GeoIP2 databases")
set(GEOIP2DB "dbip-country-lite.mmdb" CACHE PATH "GeoIP2 database file")
-add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c11 -pedantic)
+add_definitions(-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c11 -pedantic)
add_definitions(-DGEOIP2DIR="${GEOIP2DIR}/")
add_definitions(-DGEOIP2DB="${GEOIP2DB}")
add_executable(logswan ${SRC} ${DEPS})