mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
sys-devel/binutils: make gprofng optional (masked USE flag)
We can enable this by default in future, but it's brand new in 2.39 with several bugs: - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) Bug: https://bugs.gentoo.org/865113 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
# This file is only for generic masks. For arch-specific masks (i.e.
|
||||
# mask everywhere, unmask on arch/*) use arch/base.
|
||||
|
||||
# Sam James <sam@gentoo.org> (2022-08-26)
|
||||
# Broken at runtime for now (bug #865113).
|
||||
sys-devel/binutils gprofng
|
||||
|
||||
# Matthew Smith <matthew@gentoo.org> (2022-08-19)
|
||||
# Upstream recommends that tbb be built with a patch to avoid bugs.
|
||||
# https://github.com/rui314/mold/releases/tag/v1.4.1
|
||||
|
||||
@@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func
|
||||
DESCRIPTION="Tools necessary to build programs"
|
||||
HOMEPAGE="https://sourceware.org/binutils/"
|
||||
LICENSE="GPL-3+"
|
||||
IUSE="cet default-gold doc emacs gold multitarget +nls pgo +plugins static-libs test vanilla"
|
||||
IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla"
|
||||
REQUIRED_USE="default-gold? ( gold )"
|
||||
|
||||
# Variables that can be set here (ignored for live ebuilds)
|
||||
@@ -286,6 +286,14 @@ src_configure() {
|
||||
# Ideally we would like automagic-or-disabled here.
|
||||
# But the check does not quite work on i686: bug #760926.
|
||||
$(use_enable cet)
|
||||
|
||||
# We can enable this by default in future, but it's brand new
|
||||
# in 2.39 with several bugs:
|
||||
# - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477)
|
||||
# - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521)
|
||||
# - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479)
|
||||
# - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113)
|
||||
$(use_enable gprofng)
|
||||
)
|
||||
|
||||
if ! is_cross ; then
|
||||
|
||||
@@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func
|
||||
DESCRIPTION="Tools necessary to build programs"
|
||||
HOMEPAGE="https://sourceware.org/binutils/"
|
||||
LICENSE="GPL-3+"
|
||||
IUSE="cet default-gold doc emacs +gold multitarget +nls pgo +plugins static-libs test vanilla"
|
||||
IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla"
|
||||
REQUIRED_USE="default-gold? ( gold )"
|
||||
|
||||
# Variables that can be set here (ignored for live ebuilds)
|
||||
@@ -285,6 +285,14 @@ src_configure() {
|
||||
# Ideally we would like automagic-or-disabled here.
|
||||
# But the check does not quite work on i686: bug #760926.
|
||||
$(use_enable cet)
|
||||
|
||||
# We can enable this by default in future, but it's brand new
|
||||
# in 2.39 with several bugs:
|
||||
# - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477)
|
||||
# - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521)
|
||||
# - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479)
|
||||
# - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113)
|
||||
$(use_enable gprofng)
|
||||
)
|
||||
|
||||
if ! is_cross ; then
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<flag name="cet">Enable Intel Control-flow Enforcement Technology.</flag>
|
||||
<flag name="default-gold">Set ld to point to ld.gold instead of ld.bfd</flag>
|
||||
<flag name="gold">Build ld.gold linker</flag>
|
||||
<flag name="gprofng">Enable the next-generation gprofng profiler</flag>
|
||||
<flag name="pgo">Build binutils with Profile Guided Optimization (PGO) and LTO</flag>
|
||||
<flag name="plugins">Enable plugin support in tools</flag>
|
||||
<flag name="multitarget">Adds support to binutils for cross compiling (does not work with gas)</flag>
|
||||
|
||||
Reference in New Issue
Block a user