sys-kernel/hurd: add USE=custom-cflags

I had a boot failure with -O2, I've not debugged it at all and it might
just be with GCC trunk, but add custom-cflags for now as if it's miscompiled,
it's pretty painful.

May remove this later.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-03-18 22:13:08 +00:00
parent f798b62f5d
commit bf2b84ae42
2 changed files with 14 additions and 4 deletions

View File

@@ -29,9 +29,9 @@ fi
LICENSE="GPL-2 BSD-2"
SLOT="0"
if is_crosspkg ; then
IUSE="headers-only"
IUSE="custom-cflags headers-only"
else
IUSE="headers-only ncurses xkb"
IUSE="custom-cflags headers-only ncurses xkb"
fi
[[ ${PV} != 9999 ]] && KEYWORDS="~amd64 ~x86"
@@ -80,6 +80,11 @@ src_configure() {
--host=${CTARGET}
)
if ! use custom-cflags ; then
strip-flags
filter-lto
fi
append-flags -Wl,--no-error-rwx-segments -Wl,--no-error-execstack -Wl,-z,notext
if use headers-only ; then

View File

@@ -29,9 +29,9 @@ fi
LICENSE="GPL-2 BSD-2"
SLOT="0"
if is_crosspkg ; then
IUSE="headers-only"
IUSE="custom-cflags headers-only"
else
IUSE="headers-only ncurses xkb"
IUSE="custom-cflags headers-only ncurses xkb"
fi
[[ ${PV} != 9999 ]] && KEYWORDS="~amd64 ~x86"
@@ -76,6 +76,11 @@ src_configure() {
--host=${CTARGET}
)
if ! use custom-cflags ; then
strip-flags
filter-lto
fi
append-flags -Wl,--no-error-rwx-segments -Wl,--no-error-execstack -Wl,-z,notext
if use headers-only ; then