Don't force use of -fPIE for the dbus-daemon if apparently supported
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 21 Feb 2011 16:23:24 +0000 (16:23 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 26 Apr 2011 17:47:23 +0000 (18:47 +0100)
commit53db0b73c4d103ab0081993474c0fac7cc05ffc0
tree4e825ca110a13ab43e4c3949e1605d0cba26121c
parentb0acdedae19f54c08e0f61833db8faf14aacaf87
Don't force use of -fPIE for the dbus-daemon if apparently supported

It's a minor security benefit, but not automatically beneficial (it
enables ASLR, but breaks prelinking, some buggy toolchains, and some gdb
versions). Distributions who know their infrastructure works well can
enable it just as easily via

    ./configure CFLAGS="-fPIE" LDFLAGS="-pie"

without extra support from us, and that's a generic solution applicable to
many packages.

Similarly, don't force libdbus and libdbus-internal to be PIC: libtool
knows better than we do whether that's necessary/beneficial on a
particular platform.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=16621
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27215
Bug-NB: NB#171940
Reviewed-by: Colin Walters <walters@verbum.org>
bus/Makefile.am
configure.ac
dbus/Makefile.am