summaryrefslogtreecommitdiff
path: root/bus/Makefile.am
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2007-10-03 15:21:57 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2007-10-03 15:21:57 -0400
commit8a92100bbed2ba5cb16a1ede36214fa7d2f43e43 (patch)
treec91d8cdc7b1e4ea67cba0082327b75990292f4f0 /bus/Makefile.am
parentf6ec4a80abbfd4e4f4969747c39e625b2689df08 (diff)
downloaddbus-8a92100bbed2ba5cb16a1ede36214fa7d2f43e43.tar.gz
Correctly implement -fPIC and -fPIE
* For security reasons we want possition independent code for libraries and possition independent executable for executables * before we were just enabling -fPIC * now we correctly enable -fPIC and -PIE for libdbus and the bus respectively * propper LD_FLAGS are set for each also
Diffstat (limited to 'bus/Makefile.am')
-rw-r--r--bus/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/Makefile.am b/bus/Makefile.am
index d521fa7b..4648a31d 100644
--- a/bus/Makefile.am
+++ b/bus/Makefile.am
@@ -1,7 +1,7 @@
configdir=$(sysconfdir)/dbus-1
-INCLUDES=-I$(top_srcdir) $(DBUS_BUS_CFLAGS) \
+INCLUDES=-I$(top_srcdir) $(DBUS_BUS_CFLAGS) @PIE_CFLAGS@ \
-DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
-DDAEMON_NAME=\"dbus-daemon\" -DDBUS_COMPILATION
@@ -77,7 +77,7 @@ dbus_daemon_LDADD= \
$(DBUS_BUS_LIBS) \
$(top_builddir)/dbus/libdbus-convenience.la
-dbus_daemon_LDFLAGS=@R_DYNAMIC_LDFLAG@ @SECTION_LDFLAGS@
+dbus_daemon_LDFLAGS=@R_DYNAMIC_LDFLAG@ @SECTION_LDFLAGS@ @PIE_LDFLAGS@
LAUNCH_HELPER_SOURCES= \
$(XML_SOURCES) \