void-packages/srcpkgs/tlsh/patches/fix-cflags.patch
2021-04-03 10:13:06 +07:00

13 lines
545 B
Diff

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