[lldb/debugserver] Link against Security
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Feb 2020 22:34:15 +0000 (14:34 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Feb 2020 22:52:08 +0000 (14:52 -0800)
lldb/tools/debugserver/source/CMakeLists.txt

index 5b60412..ef8dcd1 100644 (file)
@@ -82,6 +82,8 @@ endif ()
 
 check_library_exists(compression compression_encode_buffer "" HAVE_LIBCOMPRESSION)
 
+find_library(SECURITY_LIBRARY Security)
+
 add_subdirectory(MacOSX)
 
 set(LLDB_CODESIGN_IDENTITY "" CACHE STRING
@@ -202,6 +204,8 @@ target_link_libraries(lldbDebugserverCommon
                       ${LOCKDOWN_LIBRARY}
                       lldbDebugserverArchSupport
                       lldbDebugserverDarwin_DarwinLog
+                      ${FOUNDATION_LIBRARY}
+                      ${SECURITY_LIBRARY}
                       ${LIBCOMPRESSION})
 if(HAVE_LIBCOMPRESSION)
   set_property(TARGET lldbDebugserverCommon APPEND PROPERTY
@@ -265,6 +269,7 @@ if(IOS)
                       ${FOUNDATION_LIBRARY}
                       lldbDebugserverArchSupport
                       lldbDebugserverDarwin_DarwinLog
+                      ${SECURITY_LIBRARY}
                       ${LIBCOMPRESSION})
   if(HAVE_LIBCOMPRESSION)
     set_property(TARGET lldbDebugserverCommon_NonUI APPEND PROPERTY