commit: 9561169fcf55abcfbc7b54918d264085e426dee6
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 5 21:14:52 2025 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Dec 5 21:15:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9561169f
sys-apps/which-2.23: fix compilation on Darwin and Solaris
Use same workaround for Darwin and Solaris as for musl libc.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
sys-apps/which/which-2.23.ebuild | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sys-apps/which/which-2.23.ebuild b/sys-apps/which/which-2.23.ebuild
index 186e87865f75..51b60ad577f9 100644
--- a/sys-apps/which/which-2.23.ebuild
+++ b/sys-apps/which/which-2.23.ebuild
@@ -17,7 +17,12 @@ src_configure() {
tc-export AR
# Workaround ancient getopt vs C23 (bug #954755)
- use elibc_musl && append-cppflags -D__GNU_LIBRARY__
+ if use elibc_musl || \
+ [[ ${CHOST} == *-solaris* ]] || \
+ [[ ${CHOST} == *-darwin* ]]
+ then
+ append-cppflags -D__GNU_LIBRARY__
+ fi
CONFIG_SHELL="${BROOT}"/bin/bash econf
}