tss-http: 添加musl静态链接。

This commit is contained in:
taynpg 2025-04-29 11:53:37 +08:00
parent 12b57e65c9
commit 60f52a14d2

View File

@ -9,3 +9,14 @@ if (MSVC)
endif()
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()