[PATCH] Remove the autoconf build system

Stefan (metze) Metzmacher metze at samba.org
Mon May 27 06:42:24 MDT 2013


Am 27.05.2013 14:35, schrieb Simo:
> On 05/27/2013 08:26 AM, David Disseldorp wrote:
>> On Mon, 27 May 2013 21:26:16 +1000
>> Andrew Bartlett <abartlet at samba.org> wrote:
>>
>>>> I don't consider this a blocker for now, but I'd like to see configure
>>>> time PIE (--enable-pie) support re-added for vendors requiring address
>>>> space layout randomization.
>>> I would be very glad to work with you on this.  What compiler and linker
>>> flag to we need to add?
>> cflags='-fPIE' and ldflags='-pie' on GCC. So something like:
>>
>>      if Options.options.enable_pie == True:
>>          conf.ADD_CFLAGS('-fPIE')
>>          conf.ADD_LDFLAGS('-pie')
> 
> This is for binaries only.
> 
> For libraries it should be -fPIC/-shared ?

That should be the current default, we build all .c with -fPIC
also the ones which are directly linked into executables.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130527/c6ce44dd/attachment.pgp>


More information about the samba-technical mailing list