Skip to content

Commit 600a529

Browse files
author
onion
committed
chore: disable static linking of the standard library on Linux
1 parent 6cef949 commit 600a529

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/diffusion-loader.cpp/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ else()
202202
#target_link_options(sdloader PRIVATE "-Wl,--gc-sections" "-Wl,--exclude-libs,ALL")
203203
target_link_options(sdloader PRIVATE -Wl,--gc-sections)
204204
if(UNIX AND NOT APPLE AND NOT ANDROID)
205-
target_link_options(sdloader PRIVATE -static-libstdc++ -static-libgcc)
205+
# Disable static linking to avoid ABI mismatch on Linux (e.g. Arch) causing std::ctype crash
206+
# target_link_options(sdloader PRIVATE -static-libstdc++ -static-libgcc)
206207
endif()
207208
endif()
208209
# C-指定头文件 (.h, .hpp) 的搜索路径。为JNI库添加 stable-diffusion 的头文件搜索路径

0 commit comments

Comments
 (0)