mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
Don't allow the NTP support and asynchronous name resolving to be disabled. pthreads are now a hard requirement. NTP is the primary task of chrony. This functionality doesn't seem to be commonly disabled (allowing only refclocks and manual input). This removes rarely (if ever) used code and simplifies testing.
30 lines
677 B
Bash
Executable File
30 lines
677 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Try to compile chrony in various combinations of disabled features
|
|
|
|
cd ../..
|
|
|
|
export CFLAGS="-O2 -Werror -Wpointer-arith -Wformat-signedness -Wno-unknown-warning-option -D_FORTIFY_SOURCE=2"
|
|
|
|
for opts in \
|
|
"--enable-debug" \
|
|
"--enable-ntp-signd" \
|
|
"--enable-scfilter" \
|
|
"--disable-ipv6" \
|
|
"--disable-privdrop" \
|
|
"--disable-readline" \
|
|
"--disable-rtc" \
|
|
"--disable-sechash" \
|
|
"--disable-cmdmon" \
|
|
"--disable-cmdmon --enable-scfilter" \
|
|
"--disable-nts" \
|
|
"--disable-refclock" \
|
|
"--disable-timestamping" \
|
|
"--disable-cmdmon --disable-refclock"
|
|
do
|
|
./configure $opts || exit 1
|
|
make clean
|
|
make "$@" || exit 1
|
|
make -C test/unit "$@" check || exit 1
|
|
done
|