cryptominisat/cryptominisat-cmake.patch

41 lines
1.8 KiB
Diff

--- CMakeLists.txt.orig 2020-07-06 15:45:41.000000000 -0600
+++ CMakeLists.txt 2020-11-22 11:43:02.146650954 -0700
@@ -210,8 +210,6 @@ if (ENABLE_ASSERTIONS)
else()
# Note this definition doesn't appear in the cache variables.
add_definitions(-DNDEBUG)
- add_cxx_flag_if_supported("-fno-stack-protector")
- add_definitions(-D_FORTIFY_SOURCE=0)
endif()
# Note: O3 gives slight speed increase, 1 more solved from SAT Comp'14 @ 3600s
@@ -330,9 +328,6 @@ if (NOT WIN32)
add_cxx_flag_if_supported("-Wextra")
add_cxx_flag_if_supported("-Wunused")
add_cxx_flag_if_supported("-Wsign-compare")
- if (NOT CMAKE_BUILD_TYPE STREQUAL "Release")
- add_cxx_flag_if_supported("-fno-omit-frame-pointer")
- endif()
add_cxx_flag_if_supported("-Wtype-limits")
add_cxx_flag_if_supported("-Wuninitialized")
add_cxx_flag_if_supported("-Wno-deprecated")
@@ -350,7 +345,6 @@ if (NOT WIN32)
add_cxx_flag_if_supported("-msse4.2")
add_cxx_flag_if_supported("-Wextra-semi-stmt")
add_cxx_flag_if_supported("-Wweak-vtables")
- add_cxx_flag_if_supported("-ggdb3")
# Apparently needed before OS X Maverics (2013)
#add_c_flag_if_supported("-stdlib=libc++")
@@ -373,10 +367,6 @@ endif()
# -----------------------------------------------------------------------------
# Uncomment these for static compilation under Linux (messes up Valgrind)
# -----------------------------------------------------------------------------
-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND NOT SANITIZE)
- set(CMAKE_EXE_LINKER_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -Wl,--discard-all -Wl,--build-id=sha1")
-endif()
-
if ((${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR (${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
if(NOT BUILD_SHARED_LIBS)
MESSAGE(STATUS "Compiling for static library use")