logswan

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

commit 6ee5501323dbccfc0f81b99c0c4c4dee40ce3b55
parent 50e46eb82b21dea7192e5ce6540b1abae995b5f1
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 16 Nov 2020 22:46:29 +0100

Do not override CMAKE_C_FLAGS_RELEASE when enabling FORTIFY_SOURCE.

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

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -68,7 +68,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") -set(CMAKE_C_FLAGS_RELEASE "-D_FORTIFY_SOURCE=2") +set(CMAKE_C_FLAGS_RELEASE "${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}")