commit:     747c3fa8dbf5ee03c8ff3df546cb6dd6825f0d6c
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 15 13:28:55 2014 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Tue Apr 15 13:28:55 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=747c3fa8

Add hardened useflag and append relro ldflags, bug #500186

---
 www-client/firefox/firefox-28.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www-client/firefox/firefox-28.0.ebuild 
b/www-client/firefox/firefox-28.0.ebuild
index 2c2619c..b656489 100644
--- a/www-client/firefox/firefox-28.0.ebuild
+++ b/www-client/firefox/firefox-28.0.ebuild
@@ -39,7 +39,7 @@ HOMEPAGE="http://www.mozilla.com/firefox";
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist gstreamer +jit +minimal pgo pulseaudio selinux system-cairo 
system-icu system-jpeg system-sqlite test"
+IUSE="bindist gstreamer hardened +jit +minimal pgo pulseaudio selinux 
system-cairo system-icu system-jpeg system-sqlite test"
 
 # More URIs appended below...
 SRC_URI="${SRC_URI}
@@ -205,6 +205,9 @@ src_configure() {
        # It doesn't compile on alpha without this LDFLAGS
        use alpha && append-ldflags "-Wl,--no-relax"
 
+       # Add full relro support for hardened
+       use hardened && append-ldflags "-Wl,-z,relro,-z,now"
+
        # We must force enable jemalloc 3 threw .mozconfig
        echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig || die
 

Reply via email to