@@ -132,9 +132,10 @@ if(CMAKE_C_COMPILER_ID STREQUAL MSVC)
132
132
else ()
133
133
target_compile_options (unwind_shared_objects PRIVATE -fno-rtti )
134
134
endif ()
135
- target_link_libraries (unwind_shared_objects PRIVATE unwind-headers ${LIBUNWIND_LIBRARIES} )
136
135
target_compile_options (unwind_shared_objects PUBLIC "${LIBUNWIND_ADDITIONAL_COMPILE_FLAGS} " )
137
- target_link_libraries (unwind_shared_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRARIES} " )
136
+ target_link_libraries (unwind_shared_objects
137
+ PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRARIES} "
138
+ PRIVATE unwind-headers runtimes-libc-headers ${LIBUNWIND_LIBRARIES} )
138
139
set_target_properties (unwind_shared_objects
139
140
PROPERTIES
140
141
CXX_EXTENSIONS OFF
@@ -147,7 +148,7 @@ if (CMAKE_POSITION_INDEPENDENT_CODE OR NOT DEFINED CMAKE_POSITION_INDEPENDENT_CO
147
148
endif ()
148
149
149
150
add_library (unwind_shared SHARED )
150
- target_link_libraries (unwind_shared PUBLIC unwind_shared_objects )
151
+ target_link_libraries (unwind_shared PUBLIC unwind_shared_objects runtimes-libc-shared )
151
152
set_target_properties (unwind_shared
152
153
PROPERTIES
153
154
EXCLUDE_FROM_ALL "$<IF:$<BOOL:${LIBUNWIND_ENABLE_SHARED} >,FALSE,TRUE>"
@@ -173,9 +174,10 @@ if(CMAKE_C_COMPILER_ID STREQUAL MSVC)
173
174
else ()
174
175
target_compile_options (unwind_static_objects PRIVATE -fno-rtti )
175
176
endif ()
176
- target_link_libraries (unwind_static_objects PRIVATE unwind-headers ${LIBUNWIND_LIBRARIES} )
177
177
target_compile_options (unwind_static_objects PUBLIC "${LIBUNWIND_ADDITIONAL_COMPILE_FLAGS} " )
178
- target_link_libraries (unwind_static_objects PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRARIES} " )
178
+ target_link_libraries (unwind_static_objects
179
+ PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRARIES} "
180
+ PRIVATE unwind-headers runtimes-libc-headers ${LIBUNWIND_LIBRARIES} )
179
181
set_target_properties (unwind_static_objects
180
182
PROPERTIES
181
183
CXX_EXTENSIONS OFF
@@ -194,7 +196,7 @@ if(LIBUNWIND_HIDE_SYMBOLS)
194
196
endif ()
195
197
196
198
add_library (unwind_static STATIC )
197
- target_link_libraries (unwind_static PUBLIC unwind_static_objects )
199
+ target_link_libraries (unwind_static PUBLIC unwind_static_objects runtimes-libc-static )
198
200
set_target_properties (unwind_static
199
201
PROPERTIES
200
202
EXCLUDE_FROM_ALL "$<IF:$<BOOL:${LIBUNWIND_ENABLE_STATIC} >,FALSE,TRUE>"
0 commit comments