summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-02-11 20:16:15 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-02-11 20:21:55 +0000
commit631038dec7129bd3f5d859170b2c11bd6d1b8264 (patch)
tree0afc5a075d8fe780b56cde6dd7ad5f84e3deceb9 /sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild
parentapp-admin/gentoo-perl-helpers: Update metadata (diff)
downloadgentoo-631038dec7129bd3f5d859170b2c11bd6d1b8264.tar.gz
gentoo-631038dec7129bd3f5d859170b2c11bd6d1b8264.tar.bz2
gentoo-631038dec7129bd3f5d859170b2c11bd6d1b8264.zip
sys-libs/binutils-libs: make CET optional (and disabled by default)
Reported-by: subzero_ro@yahoo.com Bug: https://bugs.gentoo.org/770061 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild')
-rw-r--r--sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild b/sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild
index a5f20fafd25..9eabcacc31e 100644
--- a/sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild
+++ b/sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild
@@ -20,7 +20,7 @@ SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz
LICENSE="|| ( GPL-3 LGPL-3 )"
SLOT="0/${PV}"
-IUSE="64-bit-bfd multitarget nls static-libs"
+IUSE="64-bit-bfd cet multitarget nls static-libs"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
BDEPEND="nls? ( sys-devel/gettext )"
@@ -89,6 +89,11 @@ multilib_src_configure() {
# avoid automagic dependency on (currently prefix) systems
# systems with debuginfod library, bug #754753
--without-debuginfod
+
+ # Allow user to opt into CET for host libraries.
+ # Ideally we would like automagic-or-disabled here.
+ # But the check does not quite work on i686: bug #760926.
+ $(use_enable cet)
)
# mips can't do hash-style=gnu ...