- 下载
Index of /~ntp/ntp_spool/ntp4
- 交叉编译openssl
交叉编译嵌入式openssl,关键是在config中指定编译器前缀-CSDN博客
- 交叉编译
DEST_DIR=${HOME}/ntp_server
CROSS_NAME=aarch64-mix210-linux
OPENSSL_DIR=${HOME}/build_libsexport PATH=/opt/linux/x86-arm/${CROSS_NAME}/bin:${PATH}if [ -d ${DEST_DIR} ]; thenrm -rf ${DEST_DIR}
fimake clean./configure \--prefix=${DEST_DIR} \--host=arm-linux\CC=${CROSS_NAME}-gcc \AR=${CROSS_NAME}-ar \AS=${CROSS_NAME}-as \CFLAGS="-fPIC" \--enable-all-clocks \--enable-parse-clocks \--with-yielding-select=yes \--with-openssl-incdir=${OPENSSL_DIR}/include \--with-openssl-libdir=${OPENSSL_DIR}/lib \--with-ntpsnmpd=nomake -j16make install
- 检查
file ${DEST_DIR}/bin/ntpdate${DEST_DIR}/bin/ntpdate: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, with debug_info, not stripped