summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-26 06:35:25 +0100
committerSam James <sam@gentoo.org>2022-05-26 06:48:05 +0100
commitf26b9f82a358ce22c9d77710ce785f94defa20dd (patch)
treed2826bb00903bb428bc6b55ce799d8b28cabe2e5
parentsys-devel/gdb: modernise ebuild a bit (diff)
downloadgentoo-f26b9f82a358ce22c9d77710ce785f94defa20dd.tar.gz
gentoo-f26b9f82a358ce22c9d77710ce785f94defa20dd.tar.bz2
gentoo-f26b9f82a358ce22c9d77710ce785f94defa20dd.zip
sys-devel/binutils: add --enable-warn-{execstack,rwx-segments} to 9999 only
New in 2.39. This lays the groundworks for --enable-default-execstack at some point, maybe even in 2.39 for us, but let's see how this goes first. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-devel/binutils/binutils-9999.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild
index b317d8ffcd0f..8a2d54bd59b9 100644
--- a/sys-devel/binutils/binutils-9999.ebuild
+++ b/sys-devel/binutils/binutils-9999.ebuild
@@ -242,8 +242,22 @@ src_configure() {
--enable-install-libiberty
# Available from 2.35 on
--enable-textrel-check=warning
+
+ # Available from 2.39 on
+ --enable-warn-execstack
+ --enable-warn-rwx-segments
+ # TODO: Available from 2.39+ on but let's try the warning on for a bit
+ # first... (--enable-warn-execstack)
+ # Could put it under USE=hardened?
+ #--enable-default-execstack
+
+ # Things to think about
+ #--enable-deterministic-archives
+
# Works better than vapier's patch, bug #808787
--enable-new-dtags
+
+ --disable-jansson
--disable-werror
--with-bugurl="$(toolchain-binutils_bugurl)"
--with-pkgversion="$(toolchain-binutils_pkgversion)"