Skip to content

Commit 65a769f

Browse files
authored
Merge pull request #296 from LucasChollet/link_sframe
Add `sframe` to libbfd's dependencies list when available on the system. On recent versions of libbfd and depending how binutils/libbfd is packaged, the extra dependency on sframe becomes explicit.
2 parents a6629cf + 11b2d6d commit 65a769f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BackwardConfig.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ if (${STACK_DETAILS_AUTO_DETECT})
152152
# If we attempt to link against static bfd, make sure to link its dependencies, too
153153
get_filename_component(bfd_lib_ext "${LIBBFD_LIBRARY}" EXT)
154154
if (bfd_lib_ext STREQUAL "${CMAKE_STATIC_LIBRARY_SUFFIX}")
155+
find_library(LIBSFRAME_LIBRARY NAMES sframe)
156+
if (LIBSFRAME_LIBRARY)
157+
list(APPEND _BACKWARD_LIBRARIES ${LIBSFRAME_LIBRARY})
158+
endif()
159+
155160
list(APPEND _BACKWARD_LIBRARIES iberty z)
156161
endif()
157162

0 commit comments

Comments
 (0)