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