From 74578b270227c984499dc37c4b436382f6cced1f Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 21 Jul 2009 15:17:54 +0200 Subject: Added -fno-delete-null-pointer-checks This optimisation can be dangerous sometimes, where the C compiler can remove some NULL pointer checks if it believes a pointer is assigned before this check. Sometimes, this is very wrong and can cause an exploit. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 07b5cb0..761fae2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ SET(PLUGINDIR "/usr/local/lib/eurephia" CACHE STRING "Plug-in path for the eurep SET(XSLTROOT "/usr/local/share/eurephia/xslt" CACHE STRING "Root path for the XSLT templates") SET(CMAKE_INSTALL_PREFIX ${PREFIX}) +SET(CMAKE_C_FLAGS "-fno-delete-null-pointer-checks") IF(SQLITE3) message(STATUS "Will build database interface for SQLite") -- cgit