]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/Makemodule.am
man pages: Change a HYPHEN-MINUS (-) to a minus (\-) for options and numbers
[thirdparty/util-linux.git] / login-utils / Makemodule.am
index 502ecd5034d3dcd06a25741ffb7c53fb0bff0aca..fac5bfc19940d820003746090a1cc5d2c9aa363f 100644 (file)
@@ -67,6 +67,7 @@ if BUILD_UTMPDUMP
 usrbin_exec_PROGRAMS += utmpdump
 dist_man_MANS += login-utils/utmpdump.1
 utmpdump_SOURCES = login-utils/utmpdump.c
+utmpdump_LDADD = $(LDADD) libcommon.la
 endif
 
 
@@ -81,7 +82,7 @@ chfn_chsh_sources = \
        login-utils/ch-common.c
 chfn_chsh_cflags = $(SUID_CFLAGS) $(AM_CFLAGS)
 chfn_chsh_ldflags = $(SUID_LDFLAGS) $(AM_LDFLAGS)
-chfn_chsh_ldadd = libcommon.la
+chfn_chsh_ldadd = libcommon.la $(READLINE_LIBS)
 
 if CHFN_CHSH_PASSWORD
 chfn_chsh_ldadd += -lpam
@@ -145,6 +146,12 @@ su_LDADD = $(LDADD) libcommon.la -lpam
 if HAVE_LINUXPAM
 su_LDADD += -lpam_misc
 endif
+if HAVE_PTY
+su_SOURCES += lib/pty-session.c \
+      include/pty-session.h \
+      lib/monotonic.c
+su_LDADD += -lutil $(REALTIME_LIBS)
+endif
 endif # BUILD_SU
 
 
@@ -161,6 +168,12 @@ runuser_LDADD = $(LDADD) libcommon.la -lpam
 if HAVE_LINUXPAM
 runuser_LDADD += -lpam_misc
 endif
+if HAVE_PTY
+runuser_SOURCES += lib/pty-session.c \
+       include/pty-session.h \
+       lib/monotonic.c
+runuser_LDADD += -lutil $(REALTIME_LIBS)
+endif
 endif # BUILD_RUNUSER
 
 
@@ -228,6 +241,9 @@ test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
 
 install-exec-hook:
 if BUILD_SU
+if MAKEINSTALL_DO_CHOWN
+       chown root:root $(DESTDIR)$(bindir)/su
+endif
 if MAKEINSTALL_DO_SETUID
        chmod 4755 $(DESTDIR)$(bindir)/su
 endif