logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit 74f1efd4a1025b23a28e97ea01bf3d1f94c57899
parent 3f2d91ed41efbfb7b42053ea607980b7524d5225
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 24 Oct 2020 12:10:40 +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 @@ -68,7 +68,8 @@ 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 -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c11 -pedantic) +set(CMAKE_C_FLAGS_RELEASE "-D_FORTIFY_SOURCE=2") +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c11 -pedantic) add_definitions(-DGEOIP2DIR="${GEOIP2DIR}/") add_definitions(-DGEOIP2DB="${GEOIP2DB}") add_executable(logswan ${SRC} ${DEPS})