diff options
Diffstat (limited to 'sys-apps')
| -rw-r--r-- | sys-apps/which/which-2.23.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
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 } |
