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@gentoo.org>
This commit is contained in:
Fabian Groffen 2025-12-05 22:14:52 +01:00
parent f12528a048
commit 9561169fcf
No known key found for this signature in database
GPG Key ID: CE95DA854E444293

View File

@ -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
}