commit:     19174ac80771efe54610b0bee3122a391374593c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 21 12:46:44 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 21 12:49:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19174ac8

app-arch/arc: build w/ -std=gnu17, filter LTO

No activity upstream in 10 years.

Closes: https://bugs.gentoo.org/881987
Closes: https://bugs.gentoo.org/940242
Closes: https://bugs.gentoo.org/943844
Closes: https://bugs.gentoo.org/944136
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/arc/arc-5.21q.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/app-arch/arc/arc-5.21q.ebuild b/app-arch/arc/arc-5.21q.ebuild
index 3d510f5b386e..da9718cf8047 100644
--- a/app-arch/arc/arc-5.21q.ebuild
+++ b/app-arch/arc/arc-5.21q.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Create & extract files from DOS .ARC files"
 HOMEPAGE="https://arc.sourceforge.net";
@@ -30,7 +30,11 @@ src_prepare() {
 }
 
 src_compile() {
-       emake CC="$(tc-getCC)" OPT="${LDFLAGS}"
+       # bug #940242
+       filter-lto
+
+       # bug #944136 for gnu17
+       emake CC="$(tc-getCC) -std=gnu17" OPT="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to