[vte/vte-0-32] gnome-pty-helper: Respect SUID_CFLAGS and SUID_LDFLAGS
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-32] gnome-pty-helper: Respect SUID_CFLAGS and SUID_LDFLAGS
- Date: Fri, 24 Feb 2012 12:49:44 +0000 (UTC)
commit 1272d8b979b4b1b579180b6c57fc7df4c3e405a6
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]