commit:     e351dd8b40c1d145edcceb438637b0a65413ad54
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri Apr 25 16:42:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 18 15:22:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e351dd8b

gnustep-base/gnustep-make: restrict flags to avoid issues in revdeps

Bug: https://bugs.gentoo.org/950346
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42071
Signed-off-by: Sam James <sam <AT> gentoo.org>

 gnustep-base/gnustep-make/gnustep-make-2.9.3.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnustep-base/gnustep-make/gnustep-make-2.9.3.ebuild 
b/gnustep-base/gnustep-make/gnustep-make-2.9.3.ebuild
index 5cd0346b9dcf..72cf878d6810 100644
--- a/gnustep-base/gnustep-make/gnustep-make-2.9.3.ebuild
+++ b/gnustep-base/gnustep-make/gnustep-make-2.9.3.ebuild
@@ -11,7 +11,7 @@ SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="libobjc2 native-exceptions"
+IUSE="custom-cflags libobjc2 native-exceptions"
 
 DEPEND="${GNUSTEP_CORE_DEPEND}
        >=dev-build/make-3.75
@@ -91,6 +91,13 @@ src_configure() {
                strip-unsupported-flags
        fi
 
+       # gnustep-make has sticky flags that affect other gnustep packages
+       # https://bugs.gentoo.org/950346
+       if ! use custom-cflags; then
+               strip-flags
+               filter-lto
+       fi
+
        econf \
                INSTALL="${EPREFIX}"/usr/bin/install \
                --with-layout=fhs-system \

Reply via email to