From 9cc89f0170308b813af05dadcd26f9a2dee47713 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 6 Jan 2023 01:04:40 -0800 Subject: [PATCH] build: adjust linking for Crypto (#137) The package DLL `Crypto.dll` was building the BoringSSL wrapper (`CryptoBoringWrapper`) in the style that the user requested (static or shared). However, there is a single user of the library and is not directly included by the SPM client. Furthermore, the library was not setup for installation which makes redistribution of it impossible. Always build the library in a static mode to allow compaction into the `Crypto` target. --- Sources/CryptoBoringWrapper/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CryptoBoringWrapper/CMakeLists.txt b/Sources/CryptoBoringWrapper/CMakeLists.txt index 3a083ac1..1de749f2 100644 --- a/Sources/CryptoBoringWrapper/CMakeLists.txt +++ b/Sources/CryptoBoringWrapper/CMakeLists.txt @@ -12,7 +12,7 @@ ## ##===----------------------------------------------------------------------===## -add_library(CryptoBoringWrapper +add_library(CryptoBoringWrapper STATIC "AEAD/BoringSSLAEAD.swift" "CryptoKitErrors_boring.swift")