LoginSignup
0
0

静态编译chrony

Posted at

转自

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0