File libgnomesu-suid_flags.patch of Package libgnomesu
Index: libgnomesu-1.0.0/pam-backend/Makefile.am
===================================================================
--- libgnomesu-1.0.0.orig/pam-backend/Makefile.am
+++ libgnomesu-1.0.0/pam-backend/Makefile.am
@@ -5,7 +5,13 @@ libexec_PROGRAMS = gnomesu-pam-backend
INCLUDES = $(GNOMESU_PAM_BACKEND_CFLAGS) -I$(top_srcdir)/su-backend
gnomesu_pam_backend_SOURCES = pam.c
+gnomesu_pam_backend_CFLAGS = \
+ $(INCLUDES) \
+ $(SUID_CFLAGS) \
+ $(AM_CFLAGS)
gnomesu_pam_backend_LDFLAGS = \
+ $(SUID_LDFLAGS) \
+ $(AM_LDFLAGS) \
$(GNOMESU_PAM_BACKEND_LIBS)\
$(top_builddir)/su-backend/libcommon.la \
-lpam
Index: libgnomesu-1.0.0/configure.in
===================================================================
--- libgnomesu-1.0.0.orig/configure.in
+++ libgnomesu-1.0.0/configure.in
@@ -247,6 +247,11 @@ else
fi
AC_SUBST(PAMDIR)
+AC_ARG_VAR([SUID_CFLAGS],
+ [CFLAGS used for binaries which are usually with the suid bit])
+AC_ARG_VAR([SUID_LDFLAGS],
+ [LDFLAGS used for binaries which are usually with the suid bit])
+
AM_BINRELOC
Index: libgnomesu-1.0.0/usr/lib/libgnomesu/gnomesu-pam-backend
===================================================================
Binary files libgnomesu-1.0.0.orig/usr/lib/libgnomesu/gnomesu-pam-backend and /dev/null differ