]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: add missing object for PHC refclock
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 12:41:49 +0000 (14:41 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 13:29:02 +0000 (15:29 +0200)
This fixes commit eceb8d99371a129ad6e11f483a0442d97a895b19.

configure

index 7be160e3ae8bceaffe9b9983c395cf791b6d9d82..9f7a5b25592272f424e7193932b243e837e29114 100755 (executable)
--- a/configure
+++ b/configure
@@ -752,6 +752,8 @@ if [ $feat_refclock = "1" ] && [ $feat_phc = "1" ] && [ $try_phc = "1" ] && \
   test_code '<linux/ptp_clock.h>' 'sys/ioctl.h linux/ptp_clock.h' '' '' \
     'ioctl(1, PTP_CLOCK_GETCAPS + PTP_SYS_OFFSET, 0);'
 then
+  grep 'HAVE_LINUX_TIMESTAMPING' config.h > /dev/null ||
+    EXTRA_OBJECTS="$EXTRA_OBJECTS hwclock.o"
   add_def FEAT_PHC
 fi