File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
- 0.49.10
1
+ 0.49.11
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ CheckForMetricsLibrary()
44
44
# Loader
45
45
46
46
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTOOL_NAME=oneprof_tool" )
47
+ #Folloing is fixing an issue with libstdc++, depending on libpthread, but not linked against libpthread.
48
+ #Details: https://stackoverflow.com/questions/51209268/using-stdthread-in-a-library-loaded-with-dlopen-leads-to-a-sigsev
49
+ #Bug submission: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791 (fixed from gcc 10.5 and later)
50
+ add_link_options (-Wl,--no-as-needed -lpthread -Wl,--as-needed )
47
51
add_executable (oneprof "${PROJECT_SOURCE_DIR} /../../loader/loader.cc" )
48
52
target_include_directories (oneprof
49
53
PRIVATE "${PROJECT_SOURCE_DIR} /../../utils" )
You can’t perform that action at this time.
0 commit comments