转自
git仓库下载最新版本源码
wget https://gitlab.com/chrony/chrony/-/archive/4.4/chrony-4.4.tar.gz
ubuntu静态编译
docker run --name t1 -tid -v $PWD/chrony:/opt --workdir /opt ubuntu
docker exec -ti t1 bash
apt-get update
apt-get install apt-file
apt-file update
apt-file search sys/timepps.h
apt-get install -y \
bison asciidoctor \
gcc \
make \
pkg-config \
libcap-dev \
pps-tools \
libedit-dev \
nettle-dev \
libnss3-dev \
libtomcrypt-dev \
libgnutls28-dev \
libseccomp-dev
CFLAGS='-static -s' LDFLAGS='-static -lm' ./configure --enable-scfilter --enable-ntp-signd
make; echo $?
make install
$ chronyd -v