[vte/vte-next] gnome-pty-helper: Respect SUID_CFLAGS and SUID_LDFLAGS



commit 3be9b1f2f9ff32f0f84a15a9fe72cc4c009153e2
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Feb 24 11:28:38 2012 +0100

    gnome-pty-helper: Respect SUID_CFLAGS and SUID_LDFLAGS
    
    This is a good way for distributors to use -fPIE/-pie when building vte.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670732

 gnome-pty-helper/Makefile.am  |    3 +++
 gnome-pty-helper/configure.in |    5 +++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-pty-helper/Makefile.am b/gnome-pty-helper/Makefile.am
index bb54503..10a1c89 100644
--- a/gnome-pty-helper/Makefile.am
+++ b/gnome-pty-helper/Makefile.am
@@ -7,6 +7,9 @@ gnome_pty_helper_SOURCES = \
 	gnome-pty-helper.c \
 	gnome-utmp.c
 
+gnome_pty_helper_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
+gnome_pty_helper_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
+
 install-exec-hook:
 	chown root.utmp $(DESTDIR)$(libexecdir)/gnome-pty-helper || true
 	chmod g+s       $(DESTDIR)$(libexecdir)/gnome-pty-helper || true
diff --git a/gnome-pty-helper/configure.in b/gnome-pty-helper/configure.in
index 73a400e..16940ea 100644
--- a/gnome-pty-helper/configure.in
+++ b/gnome-pty-helper/configure.in
@@ -45,6 +45,11 @@ case $host in
 	;;
 esac
 
+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])
+
 AC_CONFIG_FILES([Makefile])
 
 AC_OUTPUT



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]