Skip to content

Commit

Permalink
do not use -static-libgcc -static-libstdc++ on mac for shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Jan 10, 2025
1 parent 128cdb9 commit 6ca5f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ else()
add_library(emulator STATIC ${EMULATOR_SOURCE} ${EMULATOR_HEADERS})
endif()

if (PORTABLE)
target_link_libraries(emulator PUBLIC emulator_static git -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(emulator PUBLIC emulator_static git)
endif()
Expand Down
4 changes: 2 additions & 2 deletions tonlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6ca5f54

Please sign in to comment.