File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,16 @@ add_dependencies(${PROFILER_STATIC_LIB_NAME} libdatadog-lib libunwind-lib corecl
129
129
# ******************************************************
130
130
# Define shared target
131
131
# ******************************************************
132
- set (dd_profiling_linker_script "${CMAKE_SOURCE_DIR } /datadog_profiling.version" )
132
+ set (dd_profiling_linker_script "${CMAKE_CURRENT_SOURCE_DIR } /datadog_profiling.version" )
133
133
134
134
add_library (${PROFILER_SHARED_LIB_NAME} SHARED
135
135
../Datadog.Profiler.Native/DllMain.cpp
136
136
)
137
137
138
138
set_target_properties (${PROFILER_SHARED_LIB_NAME} PROPERTIES PREFIX "" )
139
+ set_target_properties (${PROFILER_SHARED_LIB_NAME} PROPERTIES LINK_DEPENDS "${dd_profiling_linker_script} " )
140
+ target_link_options (${PROFILER_SHARED_LIB_NAME} PRIVATE
141
+ "LINKER:--version-script=${dd_profiling_linker_script} " )
139
142
140
143
# Define linker libraries
141
144
target_link_libraries (${PROFILER_SHARED_LIB_NAME}
You can’t perform that action at this time.
0 commit comments