Skip to content

Commit 8211f12

Browse files
committed
fix: disable OpenSSL in libtorrent build
Root cause: Qt (network module) and libtorrent both were statically linking OpenSSL, causing duplicate symbols. The function pointer table in one copy got corrupted by /FORCE:MULTIPLE, causing infinite recursion in tls_parse_all_extensions. Strategy: Disable OpenSSL in libtorrent entirely (-Dopenssl=OFF). libtorrent will use Boost.Asio's native TLS support (SChannel on Windows) instead. This eliminates the duplicate symbol problem entirely - only Qt's OpenSSL will be in the binary, and it will use schannel so there's no circular dependency.
1 parent efbc358 commit 8211f12

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci_windows_arm64_native.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ jobs:
161161
-Dmmap-disk-io=OFF `
162162
-Ddeprecated-functions=ON `
163163
-Dstatic_runtime=ON `
164+
-Dopenssl=OFF `
164165
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}
165166
166167
cmake --build build

0 commit comments

Comments
 (0)