File: link-to-stdcpp.patch

package info (click to toggle)
tlsh 4.12.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 19,952 kB
  • sloc: cpp: 9,132; python: 1,603; java: 1,214; sh: 703; javascript: 467; ansic: 54; makefile: 27; sed: 9
file content (23 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Do link libgcc and libstdc++ dynamically
 Reverts https://github.com/trendmicro/tlsh/commit/4b7d9576f7311f0e135ba69d950ff304969a34ad
 as we do not seem to need those considerations here.
 We probably need to figure out what problems upstream was having before forwarding.
Author: Mattia Rizzolo <mattia@debian.org>
Forwarded: not-needed
Last-Update: 2021-10-12

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,12 +137,6 @@
     include_directories(Windows)
 endif()
 
-# user can override CXX; make sure tests link and load properly regardless of LD_LIBRARY_PATH
-if(CMAKE_COMPILER_IS_GNUCXX)
-    # issue #116 Library will not compile on CENTOS 7
-    # set(CMAKE_EXE_LINKER_FLAGS "-static-libstdc++")
-    set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc")
-endif()
 
 # from https://stackoverflow.com/questions/5395309/how-do-i-force-cmake-to-include-pthread-option-during-compilation
 set(CMAKE_THREAD_PREFER_PTHREAD TRUE)