Skip to content

Commit ad95390

Browse files
committed
linux下试图静态链接libstdc++ 和libgcc
1 parent 700074c commit ad95390

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

3rd/uriparser/src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#define PACKAGE_VERSION "0.9.5"
4545

46-
#define HAVE_WPRINTF
46+
/* #undef HAVE_WPRINTF */
4747
/* #undef HAVE_REALLOCARRAY */
4848

4949

CodeFormatServer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ target_link_libraries(CodeFormatServer PUBLIC CodeService)
6767
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
6868
target_compile_definitions(CodeFormatServer PUBLIC -D_WIN32_WINNT=0x0601)
6969
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
70-
target_link_libraries(CodeFormatServer PUBLIC pthread)
70+
target_link_libraries(CodeFormatServer PUBLIC pthread -static-libstdc++ -static-libgcc)
7171
endif()
7272

7373
install(

0 commit comments

Comments
 (0)