[PATCH 59/94] sys-kernel/hurd: disable _FORTIFY_SOURCE

Sam James <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <b98b007c09af560e99af083d8ff36061bca1f8e8.1774994339.git.sam@gentoo.org>
It hangs on boot for several of us without this. I plan on debugging
this properly but right now, we're using -O0 because of this problem,
and I'd like to stop doing that.

Signed-off-by: Sam James <[email protected]>
---
 sys-kernel/hurd/hurd-0.9_p20251029.ebuild | 2 ++
 sys-kernel/hurd/hurd-9999.ebuild          | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/sys-kernel/hurd/hurd-0.9_p20251029.ebuild b/sys-kernel/hurd/hurd-0.9_p20251029.ebuild
index b42a14cdb1428..d0a24a99c0cc6 100644
--- a/sys-kernel/hurd/hurd-0.9_p20251029.ebuild
+++ b/sys-kernel/hurd/hurd-0.9_p20251029.ebuild
@@ -83,6 +83,8 @@ src_configure() {
 	if ! use custom-cflags ; then
 		strip-flags
 		filter-lto
+		# Hangs on boot without this
+		append-flags -U_FORTIFY_SOURCE
 	fi
 
 	append-flags -Wl,--no-error-rwx-segments -Wl,--no-error-execstack -Wl,-z,notext
diff --git a/sys-kernel/hurd/hurd-9999.ebuild b/sys-kernel/hurd/hurd-9999.ebuild
index ee8043092cd16..598a46f57a6fb 100644
--- a/sys-kernel/hurd/hurd-9999.ebuild
+++ b/sys-kernel/hurd/hurd-9999.ebuild
@@ -79,6 +79,8 @@ src_configure() {
 	if ! use custom-cflags ; then
 		strip-flags
 		filter-lto
+		# Hangs on boot without this
+		append-flags -U_FORTIFY_SOURCE
 	fi
 
 	append-flags -Wl,--no-error-rwx-segments -Wl,--no-error-execstack -Wl,-z,notext
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.