summaryrefslogtreecommitdiff
path: root/src/polkitagent
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2012-02-24 13:13:17 +0100
committerColin Walters <walters@verbum.org>2013-04-11 13:20:47 -0400
commite267e965ac30e29cb2de1e2ba668e7d00ab5b700 (patch)
treeb1365c8266524b9f1c99329494b6d9feb4545374 /src/polkitagent
parent80a10b589fa606930b0dab2e2613e77b734d9a6b (diff)
downloadpolkit-e267e965ac30e29cb2de1e2ba668e7d00ab5b700.tar.gz
polkitagent, pkexec: Respect SUID_CFLAGS and SUID_LDFLAGS
This is a good way for distributors to use -fPIE/-pie. https://bugs.freedesktop.org/attachment.cgi?id=57584
Diffstat (limited to 'src/polkitagent')
-rw-r--r--src/polkitagent/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am
index c8420fa..3bc364e 100644
--- a/src/polkitagent/Makefile.am
+++ b/src/polkitagent/Makefile.am
@@ -94,6 +94,7 @@ endif
polkit_agent_helper_1_CFLAGS = \
-D_POLKIT_COMPILATION \
+ $(SUID_CFLAGS) \
$(GLIB_CFLAGS) \
$(NULL)
@@ -103,6 +104,11 @@ polkit_agent_helper_1_LDADD = \
$(top_builddir)/src/polkit/libpolkit-gobject-1.la \
$(NULL)
+polkit_agent_helper_1_LDFLAGS = \
+ $(SUID_LDFLAGS) \
+ $(AM_LDFLAGS) \
+ $(NULL)
+
if HAVE_INTROSPECTION
girdir = $(INTROSPECTION_GIRDIR)