소스 검색

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

Jeffrey Morgan 1 년 전
부모
커밋
288ef8ff95
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      llm/generate/gen_common.sh

+ 3 - 3
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