Skip to content

Commit

Permalink
[All] Add build-id to Linux binaries (#4711)
Browse files Browse the repository at this point in the history
* Add build-id to Linux binaries
* Fix macos build
  • Loading branch information
gleocadie authored Oct 10, 2023
1 parent ee0f88c commit 7e14cde
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ add_library(${API_WRAPPER_SHARED_LIB_NAME} SHARED
target_link_libraries(${API_WRAPPER_SHARED_LIB_NAME}
-pthread
-ldl
-Wl,--build-id
)

set_target_properties(${API_WRAPPER_SHARED_LIB_NAME} PROPERTIES PREFIX "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ target_link_libraries(${PROFILER_STATIC_LIB_NAME}
-lstdc++fs
-pthread
-ldl
-Wl,--build-id
)

add_dependencies(${PROFILER_STATIC_LIB_NAME} libdatadog-lib libunwind-lib coreclr spdlog-headers PPDB)
Expand Down
1 change: 1 addition & 0 deletions shared/src/Datadog.Trace.ClrProfiler.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ elseif(ISLINUX)
${CMAKE_DL_LIBS}
coreclr
spdlog-headers
-Wl,--build-id
)
endif()

Expand Down
1 change: 1 addition & 0 deletions tracer/src/Datadog.Tracer.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ elseif(ISLINUX)
${CMAKE_DL_LIBS}
-static-libgcc
-static-libstdc++
-Wl,--build-id
)
endif()

Expand Down

0 comments on commit 7e14cde

Please sign in to comment.