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