void-packages/srcpkgs/tlsh/patches/fix-cflags.patch

14 lines
545 B
Diff
Raw Normal View History

2021-03-26 14:34:52 +00:00
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -125,7 +125,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
endif()
else(CMAKE_BUILD_TYPE STREQUAL Debug)
if(CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS "-O2 -fvisibility=internal") ## Remove TlshImpl symbols
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=internal") ## Remove TlshImpl symbols
endif()
if(MSVC)
set(CMAKE_CXX_FLAGS "/O2") ## Optimize