From: Karel Zak Date: Thu, 8 Aug 2019 13:08:14 +0000 (+0200) Subject: build-sys: fix build with pty X-Git-Tag: v2.35-rc1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63869b842f12b12a2c9f3daa16643ca82fa7eb11;p=thirdparty%2Futil-linux.git build-sys: fix build with pty Signed-off-by: Karel Zak --- diff --git a/login-utils/Makemodule.am b/login-utils/Makemodule.am index c29dbb0afe..fac5bfc199 100644 --- a/login-utils/Makemodule.am +++ b/login-utils/Makemodule.am @@ -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 diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am index b5c0d834e7..8b01ade8b8 100644 --- a/term-utils/Makemodule.am +++ b/term-utils/Makemodule.am @@ -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