Skip to content

Commit

Permalink
fix static runtime linkage on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
maddinat0r committed Dec 3, 2019
1 parent 50dcaa7 commit 5ecc2e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ elseif(UNIX)

# link runtime statically
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
add_link_options("-static")
add_link_options(
"-static-libgcc"
"-static-libstdc++"
)
endif()

set(LOGCORE_LIBS_DIR "${PROJECT_SOURCE_DIR}/libs")
Expand Down

0 comments on commit 5ecc2e7

Please sign in to comment.