From db4fec6ea450dd91db7b0694d7ea251e1c2084b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Mar 2021 21:34:52 +0700 Subject: [PATCH] tlsh: respect -g + hardening --- srcpkgs/tlsh/patches/fix-cflags.patch | 13 +++++++++++++ srcpkgs/tlsh/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/tlsh/patches/fix-cflags.patch 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"