zeek/auxil/vcpkg/ports/sentry-native/fix-usage-runtime.patch
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

14 lines
531 B
Diff

diff --git a/external/crashpad/handler/CMakeLists.txt b/external/crashpad/handler/CMakeLists.txt
index be0e544..b0d44af 100644
--- a/external/crashpad/handler/CMakeLists.txt
+++ b/external/crashpad/handler/CMakeLists.txt
@@ -87,7 +87,7 @@ target_compile_options(crashpad_handler PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:-Wno-ignored-attributes>
)
endif()
- if(LINUX)
+ if(LINUX AND BUILD_SHARED_LIBS)
target_sources(crashpad_handler PRIVATE
../client/pthread_create_linux.cc
)