sys-kernel/hurd: strip unsupported flags for cross

Closes: https://bugs.gentoo.org/982281
Thanks-to: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-09-12 01:35:14 +01:00
parent 98d2987a38
commit 46043fb84e
2 changed files with 12 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit crossdev multilib flag-o-matic
inherit crossdev multilib flag-o-matic toolchain-funcs
DESCRIPTION="GNU Hurd is the GNU project's replacement for UNIX"
HOMEPAGE="https://www.gnu.org/software/hurd/hurd.html"
@@ -100,6 +100,11 @@ src_configure() {
--disable-profile
)
# Make sure host make.conf doesn't pollute us
if target_is_not_host || tc-is-cross-compiler ; then
CHOST=${CTARGET} strip-unsupported-flags
fi
if ! use custom-cflags ; then
strip-flags
filter-lto

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit crossdev multilib flag-o-matic
inherit crossdev multilib flag-o-matic toolchain-funcs
DESCRIPTION="GNU Hurd is the GNU project's replacement for UNIX"
HOMEPAGE="https://www.gnu.org/software/hurd/hurd.html"
@@ -100,6 +100,11 @@ src_configure() {
--disable-profile
)
# Make sure host make.conf doesn't pollute us
if target_is_not_host || tc-is-cross-compiler ; then
CHOST=${CTARGET} strip-unsupported-flags
fi
if ! use custom-cflags ; then
strip-flags
filter-lto