diff --git a/srcpkgs/tlsh/patches/fix-cflags.patch b/srcpkgs/tlsh/patches/fix-cflags.patch new file mode 100644 index 00000000000..8715563715c --- /dev/null +++ b/srcpkgs/tlsh/patches/fix-cflags.patch @@ -0,0 +1,13 @@ +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 diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template index 1f96834107c..4ee1ccdc728 100644 --- a/srcpkgs/tlsh/template +++ b/srcpkgs/tlsh/template @@ -1,7 +1,7 @@ # Template file for 'tlsh' pkgname=tlsh version=3.19.1 -revision=1 +revision=2 build_style=cmake hostmakedepends="python3" makedepends="python3-devel"