github/gmssl源码嵌入式交叉编译(是否标准存疑)
【代码】国密SM源码下载及编译。
·
- 下载
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
更多推荐
所有评论(0)