configure.in and pie

Stefan (metze) Metzmacher metze at samba.org
Sat Jun 25 07:21:49 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan (metze) Metzmacher schrieb:
> Lars Müller schrieb:
> 
>>>Hi,
>>>
>>>at the moment we don't compile and link with pie options and also don't
>>>have the ability to do.
>>>
>>>As it must be possible to build Samba even with non pie aware tool
>>>chains, I've changes configure.in to add a test for pie.
>>>
>>>It's also possible to call configure with --disable-pie.  But the
>>>default would be with enabled pie.
>>>
>>>Lars

btw, what does this gane us?
from man gcc-4.0 I can't really understand what -fpie does compaired to -fPIC

I just read something that this objects can only be used for linking in executables,
(I'm not shure if I understand that correct...) but I don't see the point to use it.

Note in samba 4 we compile always with -fPIC (for executables and modules)
that avoids to recompile everything with other compilerflags again.
(btw: that was tridges idea)


- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCvQYKm70gjA5TCD8RAhrCAJ4mfO0T/ZIbb66PTztryRr3z79OPgCgs610
GMS3aEwNsTvdBBqns9xjvuA=
=rwWR
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list