From 6b4eae3a25c5a33e2ef2968c5d875d01e2757ca1 Mon Sep 17 00:00:00 2001 From: neodiX Date: Thu, 9 Jan 2025 20:38:09 +0400 Subject: [PATCH] add -static-libgcc -static-libstdc++ to libtonlibjson and emulator when PORTABLE=1 --- tonlib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tonlib/CMakeLists.txt b/tonlib/CMakeLists.txt index 27f30ac92..5ecc18e7a 100644 --- a/tonlib/CMakeLists.txt +++ b/tonlib/CMakeLists.txt @@ -100,9 +100,9 @@ endif() if (PORTABLE) target_link_libraries(tonlibjson PRIVATE tonlibjson_private -static-libgcc -static-libstdc++) -else +else() target_link_libraries(tonlibjson PRIVATE tonlibjson_private) -if +endif() generate_export_header(tonlibjson EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/tonlib/tonlibjson_export.h) if (!BUILD_SHARED_LIBS)