From a8d7a8a98443d22b39e6d7cfee433aa16dade05a Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 15 Jul 2025 00:44:23 +0200 Subject: [PATCH] Build libretroshare on Windows as shared library --- retroshare.pri | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retroshare.pri b/retroshare.pri index 18207838d..98226c686 100644 --- a/retroshare.pri +++ b/retroshare.pri @@ -734,7 +734,10 @@ android-* { # To export all symbols for the plugins on Windows build we need to build # libretroshare as shared library. Fix linking error (ld.exe: Error: export # ordinal too large) due to too many exported symbols. -retroshare_plugins:win32:CONFIG *= libretroshare_shared +#retroshare_plugins:win32:CONFIG *= libretroshare_shared + +# Always build libretroshare on Windows as shared library to be compatible when building with and without plugins +win32:CONFIG *= libretroshare_shared win32-g++|win32-clang-g++ { !isEmpty(EXTERNAL_LIB_DIR) {