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

This commit is contained in:
Jeffrey Morgan 2024-01-13 03:53:00 -05:00 committed by GitHub
parent 4cf17990f7
commit 288ef8ff95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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