Support for PIE builds (was [PATCH] Remove the autoconf build system)

David Disseldorp ddiss at suse.de
Mon May 27 09:35:59 MDT 2013


On Mon, 27 May 2013 10:46:34 -0400
Simo <idra at samba.org> wrote:

> > Only the long running daemons should be compiled with PIE support!  
> 
> Well it doesn't really hurt, for net and wbinfo etc...
> They shouldn't be started frequently enough to matter.
> It's easier to be consistent and build all binaries the same way I 
> think, however if it is simple enough I am not opposed to being able to 
> specify which binaries should be PIE and which ones shouldn't.
> 
> But if it is an all or nothing thing as I think it is, then we should 
> have them all PIE.
> I am certainly opposed to a fixed list of binaries set once in some 
> file. If you need to select it should be a command line option or an 
> environment variable so that it can be passed down by build systems and 
> spec files.

I completely agree, if the user configures with PIE builds enabled, then
we should not be switching it off for specific binaries unless
explicitly requested.

For now, I'll propose global (with/without)-pie configure time
arguments. Patch to follow...

Cheers, David


More information about the samba-technical mailing list