1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

do not use -static-libgcc -static-libstdc++ on mac for shared libs

This commit is contained in:
neodiX 2025-01-10 17:57:13 +04:00
parent 128cdb9da3
commit 6ca5f54a73
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ else()
add_library(emulator STATIC ${EMULATOR_SOURCE} ${EMULATOR_HEADERS})
endif()
if (PORTABLE)
if (PORTABLE AND NOT APPLE)
target_link_libraries(emulator PUBLIC emulator_static git -static-libgcc -static-libstdc++)
else()
target_link_libraries(emulator PUBLIC emulator_static git)

View file

@ -98,8 +98,8 @@ else()
add_library(tonlibjson STATIC ${TONLIB_JSON_SOURCE} ${TONLIB_JSON_HEADERS})
endif()
if (PORTABLE)
target_link_libraries(tonlibjson PRIVATE tonlibjson_private -static-libgcc -static-libstdc++)
if (PORTABLE AND NOT APPLE)
target_link_libraries(emulator PUBLIC emulator_static git -static-libgcc -static-libstdc++)
else()
target_link_libraries(tonlibjson PRIVATE tonlibjson_private)
endif()