From 288ef8ff952e44eb86ae1471437543e8aa29651d Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 13 Jan 2024 03:53:00 -0500 Subject: [PATCH] add `gcc -lstdc++` flag for linux cpu (#1974) --- llm/generate/gen_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llm/generate/gen_common.sh b/llm/generate/gen_common.sh index e532c816..beec1be9 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