]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/pty-session: fix compilation
authorKarel Zak <kzak@redhat.com>
Thu, 10 Oct 2019 06:57:30 +0000 (08:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 10 Oct 2019 06:57:30 +0000 (08:57 +0200)
lib/test_pty-monotonic.o: In function `get_boot_time':
/home/travis/build/karelzak/util-linux/lib/monotonic.c:29: undefined reference to `clock_gettime'
lib/test_pty-monotonic.o: In function `gettime_monotonic':
/home/travis/build/karelzak/util-linux/lib/monotonic.c:56: undefined reference to `clock_gettime'

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am

index d00ef317b6b6398fb78341fea89c5d9f6ca668a9..90e9a5de6ce3d21f4077dbd0a18adff2588666cd 100644 (file)
@@ -149,7 +149,7 @@ test_pty_SOURCES = lib/pty-session.c \
                   include/pty-session.h \
                   lib/monotonic.c
 test_pty_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PTY
-test_pty_LDADD = $(LDADD) libcommon.la -lutil
+test_pty_LDADD = $(LDADD) libcommon.la $(MATH_LIBS) $(REALTIME_LIBS) -lutil
 endif
 
 if LINUX