From cb095ebe22e0d98ff17c339cdd1b312ed97394d9 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 12:58:48 +0000 Subject: [PATCH] DModemKit on Linux: link Mbed TLS's crypto, not OpenSSL D-Modem's libre now takes its digests and AES from Mbed TLS by default (DMODEM_CRYPTO=mbedtls), built beside it in the host build: the Swift tests' link (the native job) needs libmbedcrypto, no longer -lssl -lcrypto. Signed-off-by: Claude Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK --- ios/DModemKit/Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/DModemKit/Package.swift b/ios/DModemKit/Package.swift index 54381d7..ce90412 100644 --- a/ios/DModemKit/Package.swift +++ b/ios/DModemKit/Package.swift @@ -19,7 +19,8 @@ let engineLinking: [LinkerSetting] = [ "-L\(host)/app", "-L\(host)/app/d-modem-re/dmodemd", "-L\(host)/_deps/libre-install/lib", ]), .linkedLibrary("dmodem_engine"), .linkedLibrary("dmodem_sip"), .linkedLibrary("re"), - .linkedLibrary("ssl"), .linkedLibrary("crypto"), .linkedLibrary("stdc++"), .linkedLibrary("dl"), + // (libre's digests and AES: D-Modem's default, Mbed TLS's crypto library, built beside it) + .linkedLibrary("mbedcrypto"), .linkedLibrary("stdc++"), .linkedLibrary("dl"), .linkedLibrary("m"), .linkedLibrary("resolv"), ] #else