tlsh: respect -g + hardening

This commit is contained in:
Đoàn Trần Công Danh 2021-03-26 21:34:52 +07:00
parent 4d2890dcd4
commit db4fec6ea4
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
# Template file for 'tlsh' # Template file for 'tlsh'
pkgname=tlsh pkgname=tlsh
version=3.19.1 version=3.19.1
revision=1 revision=2
build_style=cmake build_style=cmake
hostmakedepends="python3" hostmakedepends="python3"
makedepends="python3-devel" makedepends="python3-devel"