Skip to content

Commit 0992b79

Browse files
committed
fix: add /FORCE:MULTIPLE back with -no-openssl to fix linking
With only -no-openssl, Qt removed_api symbols are now exposed as duplicates when /FORCE:MULTIPLE is removed. The original OpenSSL stack overflow was due to BOTH Qt and libtorrent linking OpenSSL. With -no-openssl, Qt uses -schannel only, so there's only ONE copy of OpenSSL (from libtorrent). Adding /FORCE:MULTIPLE back is safe because it only resolves removed_api duplicates, not OpenSSL. removed_api symbols don't have corrupted function pointers like OpenSSL's ext_defs did.
1 parent c2216b6 commit 0992b79

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
@@ -225,6 +225,7 @@ jobs:
225225
-DMSVC_RUNTIME_DYNAMIC=OFF `
226226
-DSTACKTRACE=OFF `
227227
-DQT_NO_PRIVATE_MODULE_WARNING=ON `
228+
-DCMAKE_EXE_LINKER_FLAGS="/FORCE:MULTIPLE" `
228229
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}
229230
230231
cmake --build build

0 commit comments

Comments
 (0)