Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

add `gcc -lstdc++` flag for linux cpu (#1974)

Jeffrey Morgan288ef8ff952e
diff --git a/llm/generate/gen_common.sh b/llm/generate/gen_common.sh
index e532c8160..beec1be91 100644
--- a/llm/generate/gen_common.sh
+++ b/llm/generate/gen_common.sh
@@ -52,13 +52,13 @@ install() {
}
link_server_lib() {
- g++ -fPIC -g -shared -o ${BUILD_DIR}/lib/libext_server.so \
+ gcc -fPIC -g -shared -o ${BUILD_DIR}/lib/libext_server.so \
-Wl,--whole-archive \
${BUILD_DIR}/lib/libext_server.a \
-Wl,--no-whole-archive \
${BUILD_DIR}/lib/libcommon.a \
- ${BUILD_DIR}/lib/libllama.a
-
+ ${BUILD_DIR}/lib/libllama.a \
+ -lstdc++
}
# Keep the local tree clean after we're done with the build