源码下载:
解压:
$tar -zxvf ntp-4.2.8p15.tar.gz
$cd ntp-4.2.8p15/
配置:
进入解压目录下,运行configure脚本生成makefile文件
./configure CFLAGS="-O2 -g -fPIC" \
--prefix=$(pwd)/__install \
--host=arm-linux\
CC=/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc \
AR=/opt/ext-toolchain/bin/arm-linux-gnueabihf-ar \
AS=/opt/ext-toolchain/bin/arm-linux-gnueabihf-as \
-with-yielding-select=yes \
--with-openssl-incdir=/home/bwton/project/openssl-1.0.1f/__install/include/ \
--with-openssl-libdir=/home/bwton/project/openssl-1.0.1f/__install/lib/ \
--with-ntpsnmpd=no
编译
$make -j4
安装
$make install