Skip to content

Commit

Permalink
Merge pull request #296 from LucasChollet/link_sframe
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bombela authored Jul 2, 2023
2 parents a6629cf + 11b2d6d commit 65a769f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BackwardConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ if (${STACK_DETAILS_AUTO_DETECT})
# If we attempt to link against static bfd, make sure to link its dependencies, too
get_filename_component(bfd_lib_ext "${LIBBFD_LIBRARY}" EXT)
if (bfd_lib_ext STREQUAL "${CMAKE_STATIC_LIBRARY_SUFFIX}")
find_library(LIBSFRAME_LIBRARY NAMES sframe)
if (LIBSFRAME_LIBRARY)
list(APPEND _BACKWARD_LIBRARIES ${LIBSFRAME_LIBRARY})
endif()

list(APPEND _BACKWARD_LIBRARIES iberty z)
endif()

Expand Down

0 comments on commit 65a769f

Please sign in to comment.