File rssh-Makefile.am.patch of Package rssh
--- Makefile.am 2012-11-26 05:01:11.000000000 +0100 +++ Makefile.am.new 2015-11-12 11:22:49.000000000 +0100 @@ -3,6 +3,8 @@ ourdefs = -DPATH_RSSH_CONFIG=\"@sysconfdir@/rssh.conf\" -DPATH_CHROOT_HELPER=\"@libexecdir@/rssh_chroot_helper\" ourflags = @defcflags@ @static@ AM_CFLAGS = $(ourflags) +write_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS) +write_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS) bin_PROGRAMS = rssh libexec_PROGRAMS = rssh_chroot_helper nodist_rssh_SOURCES = main.c pathnames.h config.h @@ -16,10 +18,10 @@ base=`echo @PACKAGE_STRING@|tr " " "-"` .c.o: - $(CC) -c $(DEFS) $(ourdefs) $(AM_CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< + $(CC) -c $(DEFS) $(ourdefs) $(write_CFLAGS) $(CPPFLAGS) $(write_LDFLAGS) $< install-exec-hook: - chmod u+s $(libexecdir)/rssh_chroot_helper + chmod u+s $(DESTDIR)$(libexecdir)/rssh_chroot_helper rpm: dist rpmbuild -ta --sign $(base).tar.gz