Skip to content

Commit

Permalink
build: static link libstdc++ and libgcc
Browse files Browse the repository at this point in the history
  • Loading branch information
prife committed May 14, 2020
1 parent e32f131 commit f20f24e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
set_target_properties(${PROJECT_NAME} PROPERTIES
LINK_FLAGS "-Wl,-rpath=/opt/lib/android/"
BUILD_WITH_INSTALL_RPATH 1)
target_link_options(${PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++)
elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
FIND_LIBRARY(IOKit_LIBRARY IOKit)
FIND_LIBRARY(Foundation_LIBRARY Foundation)
Expand Down

0 comments on commit f20f24e

Please sign in to comment.