[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: -fPIE and stuff



Simon McVittie <smcv@debian.org> writes:

> I investigated this for D-Bus (which builds a security-sensitive daemon,
> dbus-daemon, and a library, libdbus). It turns out that libtool is
> clever enough to replace -fPIE with -fPIC -DPIC when compiling objects
> that will go in a shared library, and omit -pie when linking shared
> libraries, so if your hybrid executable|library package uses libtool (as
> D-Bus does), you *can* just add the PIE flags:

>     https://bugs.freedesktop.org/show_bug.cgi?id=16621#c9

Oh, nice!  Thank you!  I never thought to try that.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: