]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix build with pty
authorKarel Zak <kzak@redhat.com>
Thu, 8 Aug 2019 13:08:14 +0000 (15:08 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:54 +0000 (13:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/Makemodule.am
term-utils/Makemodule.am

index c29dbb0afe1297a749ce474a2543452b307b52ae..fac5bfc19940d820003746090a1cc5d2c9aa363f 100644 (file)
@@ -148,8 +148,9 @@ su_LDADD += -lpam_misc
 endif
 if HAVE_PTY
 su_SOURCES += lib/pty-session.c \
-             include/pty-session.h
-su_LDADD += -lutil
+      include/pty-session.h \
+      lib/monotonic.c
+su_LDADD += -lutil $(REALTIME_LIBS)
 endif
 endif # BUILD_SU
 
@@ -169,8 +170,9 @@ runuser_LDADD += -lpam_misc
 endif
 if HAVE_PTY
 runuser_SOURCES += lib/pty-session.c \
-             include/pty-session.h
-runuser_LDADD += -lutil
+       include/pty-session.h \
+       lib/monotonic.c
+runuser_LDADD += -lutil $(REALTIME_LIBS)
 endif
 endif # BUILD_RUNUSER
 
index b5c0d834e7ab761116e13211ce6ae5dbec31e1b4..8b01ade8b8a6e056b1260a134551918f6b98765a 100644 (file)
@@ -35,7 +35,7 @@ scriptlive_SOURCES = term-utils/scriptlive.c \
                       lib/pty-session.c \
                       nclude/pty-session.h \
                       lib/monotonic.c
-scriptlive_LDADD = $(LDADD) libcommon.la $(MATH_LIBS) -lutil
+scriptlive_LDADD = $(LDADD) libcommon.la $(MATH_LIBS) $(REALTIME_LIBS) -lutil
 endif # BUILD_SCRIPTLIVE