• 下载

https://github.com/guanzhi/GmSSL/releases

  • 编译
INSTALL_DIR=${HOME}/build_libs

BUILD_DIR=build 
if [ -d ${BUILD_DIR} ]; then
    rm -rf ${BUILD_DIR}
fi

mkdir ${BUILD_DIR}
cd    ${BUILD_DIR}

cmake .. \
    -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}

make
make test
make install
  • 检查
SO_FILE=libgmssl.so.3.1
file ${INSTALL_DIR}/lib/${SO_FILE}
/home/weiyu/build_libs/lib/libgmssl.so.3.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a29868ce543edc6918e99f71ef2d280cd20fb7cd, not stripped

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐