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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK
This commit is contained in:
Claude committed 2026-11-09 12:58:48 +00:00
1 parent ec8a53747a
commit cb095ebe22
1 file changed
+2 -1
+2 -1
View File
@@ -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