why -pie?

Stefan (metze) Metzmacher metze at samba.org
Thu Dec 21 09:33:55 GMT 2006


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

Hi tridge,

> I've been bitten by the -pie compile flag in Samba3. I noticed you
> added it in r19093, can you explain why its needed?

I haven't added it, it was lars, see
http://viewcvs.samba.org/cgi-bin/viewcvs.cgi?rev=8151&view=rev

I just fixed --disable-pie for configure -C

and changed the build to use -fPIC for all object files, as we do in
samba4. Before it was -fPIE for object files used for linking binaries
and in a 2nd run -fPIC for object files used for linking shared libraries.

The -pie linking option for binaries is still there if the compiler
supports it.

I would be fine if we change the default to what --disable-pie do
currently, I could create the patch...

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFilUCm70gjA5TCD8RAnJzAJ0fq9QqdObJupRmesuBgadzvnKeJgCeKnpO
0rkFRGyvZs5FXac7bPRWFb8=
=cp97
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list