diff --git a/http-server/CMakeLists.txt b/http-server/CMakeLists.txt index 5259ff1..80d2873 100644 --- a/http-server/CMakeLists.txt +++ b/http-server/CMakeLists.txt @@ -8,4 +8,15 @@ if (MSVC) add_compile_options(/source-charset:utf-8) endif() -add_executable(tss-http main.cpp) \ No newline at end of file +add_executable(tss-http main.cpp) +if(UNIX) +execute_process( + COMMAND uname -a + OUTPUT_VARIABLE UNAME_OUT + OUTPUT_STRIP_TRAILING_WHITESPACE +) +if(UNAME_OUT MATCHES "alpine" OR UNAME_OUT MATCHES "Alpine") +message(STATUS "tss-http on musl static link") +target_link_libraries(tss-http PRIVATE -static;-static-libstdc++) +endif() +endif() \ No newline at end of file