summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-05-07 14:07:31 +0100
committerRichard Hughes <richard@hughsie.com>2013-05-07 14:07:31 +0100
commitefa97d515fdef37e7c20b13e1e49f82080b11625 (patch)
treeb3c0dbc6a6487ac2cb2c151c193f4a81eb7882ba /src/Makefile.am
parent61d49c3120fb5d2ce82b9871e9ce5946be0eee48 (diff)
downloadupower-efa97d515fdef37e7c20b13e1e49f82080b11625.tar.gz
Use PIE to better secure installed tools and also use full RELRO in the daemon
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 698d738..df2c98d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,6 +3,7 @@
SUBDIRS = dummy freebsd linux openbsd
AM_CPPFLAGS = \
+ $(PIE_CFLAGS) \
-I$(top_builddir)/src -I$(top_srcdir)/src \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
@@ -125,6 +126,10 @@ upowerd_LDADD += \
$(IDEVICE_LIBS) \
$(NULL)
+upowerd_LDFLAGS = \
+ $(PIE_LDFLAGS) \
+ $(RELRO_LDFLAGS)
+
if HAVE_SYSTEMDUTILDIR
systemsleepdir = $(systemdutildir)/system-sleep
systemsleep_SCRIPTS = notify-upower.sh