From 208b5d7b5bb90c334fcc3fb70a6299e308539e7c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 17 Jan 2020 10:42:16 +0300 Subject: [PATCH] Link libstdc++ statically in Updater. Fixes #6939. --- Telegram/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index b262f1a7b..b21828b2e 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -1134,6 +1134,10 @@ if (NOT build_macstore AND NOT build_winstore) set_target_properties(Updater PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder}) + if (LINUX) + target_link_options(Updater INTERFACE -static-libstdc++) + endif() + if (DESKTOP_APP_SPECIAL_TARGET) add_executable(Packer WIN32) init_target(Packer)