File rssh-Makefile.in.patch of Package rssh

--- Makefile.in	2012-11-27 01:19:34.000000000 +0100
+++ Makefile.in.new	2015-11-12 11:22:09.000000000 +0100
@@ -74,9 +74,9 @@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+	$(CPPFLAGS) $(write_CFLAGS)
 CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+LINK = $(CCLD) $(write_CFLAGS) $(write_LDFLAGS) -o $@
 SOURCES = $(rssh_SOURCES) $(nodist_rssh_SOURCES) \
 	$(rssh_chroot_helper_SOURCES)
 DIST_SOURCES = $(rssh_SOURCES) $(rssh_chroot_helper_SOURCES)
@@ -189,6 +191,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)
 nodist_rssh_SOURCES = main.c pathnames.h config.h
 rssh_SOURCES = rssh.h rsshconf.h rsshconf.c log.c log.h util.c util.h argvec.c argvec.h
 rssh_chroot_helper_SOURCES = rssh_chroot_helper.c log.c log.h argvec.c argvec.h util.c util.h rsshconf.c rsshconf.h rssh.h
@@ -727,10 +731,10 @@
 
 
 .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
openSUSE Build Service is sponsored by