]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix OSX build with backwards
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 18 Jan 2024 14:28:36 +0000 (14:28 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 18 Jan 2024 14:28:36 +0000 (14:28 +0000)
Issue: #4752

contrib/backward-cpp/BackwardConfig.cmake

index e04e3facbb9f8d420aea5fc5b6db55aaea488de3..4cec0be91c13e28e58b3016548c36fdbfc59d90a 100644 (file)
@@ -139,7 +139,9 @@ 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}")
-                       list(APPEND _BACKWARD_LIBRARIES iberty z)
+                       if (NOT APPLE)
+                               list(APPEND _BACKWARD_LIBRARIES iberty z)
+                       endif()
                endif()
 
                set(STACK_DETAILS_DW FALSE)