"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "95a7832879a3ca7debd3f7a4ee05b08ddd19a8a7"
Unverified Commit 288ef8ff authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

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

parent 4cf17990
...@@ -52,13 +52,13 @@ install() { ...@@ -52,13 +52,13 @@ install() {
} }
link_server_lib() { 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 \ -Wl,--whole-archive \
${BUILD_DIR}/lib/libext_server.a \ ${BUILD_DIR}/lib/libext_server.a \
-Wl,--no-whole-archive \ -Wl,--no-whole-archive \
${BUILD_DIR}/lib/libcommon.a \ ${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 # Keep the local tree clean after we're done with the build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment