mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-07 00:04:45 +03:00
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:
parent
f12528a048
commit
9561169fcf
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user