commit:     50984c0eceb65c252ee380d315030c26bea4bdb3
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue Oct 28 11:52:20 2025 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Nov 11 19:24:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50984c0e

gnustep-apps/gorm: workaround --as-needed issue with libobjc2 enabled gnustep

Bug: https://bugs.gentoo.org/946603
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44437
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 gnustep-apps/gorm/gorm-1.4.0.ebuild | 12 +++++++++++-
 gnustep-apps/gorm/gorm-1.5.0.ebuild | 12 +++++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/gnustep-apps/gorm/gorm-1.4.0.ebuild 
b/gnustep-apps/gorm/gorm-1.4.0.ebuild
index de10516fd704..f14aab650a6d 100644
--- a/gnustep-apps/gorm/gorm-1.4.0.ebuild
+++ b/gnustep-apps/gorm/gorm-1.4.0.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit gnustep-2
+
+inherit flag-o-matic gnustep-2
 
 DESCRIPTION="A clone of the NeXTstep Interface Builder application for GNUstep"
 HOMEPAGE="https://gnustep.github.io/experience/Gorm.html";
@@ -26,3 +27,12 @@ src_prepare() {
 
        default
 }
+
+src_configure() {
+       # bug #946603
+       if has_version gnustep-base/gnustep-make[libobjc2]; then
+               append-ldflags $(no-as-needed)
+       fi
+
+       gnustep-base_src_configure
+}

diff --git a/gnustep-apps/gorm/gorm-1.5.0.ebuild 
b/gnustep-apps/gorm/gorm-1.5.0.ebuild
index 1d238baf53a8..d6e3ae243bdd 100644
--- a/gnustep-apps/gorm/gorm-1.5.0.ebuild
+++ b/gnustep-apps/gorm/gorm-1.5.0.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit gnustep-2
+
+inherit flag-o-matic gnustep-2
 
 DESCRIPTION="A clone of the NeXTstep Interface Builder application for GNUstep"
 HOMEPAGE="https://www.gnustep.org/experience/Gorm.html";
@@ -26,3 +27,12 @@ src_prepare() {
 
        default
 }
+
+src_configure() {
+       # bug #946603
+       if has_version gnustep-base/gnustep-make[libobjc2]; then
+               append-ldflags $(no-as-needed)
+       fi
+
+       gnustep-base_src_configure
+}

Reply via email to