mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-22 16:29:05 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user