app-arch/unzip: Sync with Gentoo

It's from Gentoo commit df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.
This commit is contained in:
Flatcar Buildbot 2024-07-29 07:12:02 +00:00 committed by Krzesimir Nowak
parent a2ecde3381
commit 63f9c2f7e3

View File

@ -65,7 +65,7 @@ src_configure() {
i?86*-*linux*) TARGET="linux_asm" ;;
*linux*) TARGET="linux_noasm" ;;
*-darwin*) TARGET="macosx" ;;
*-solaris*) TARGET="generic" ;;
*-solaris*) TARGET="linux_noasm" ;;
*) die "Unknown target; please update the ebuild to handle ${CHOST}" ;;
esac
@ -73,6 +73,7 @@ src_configure() {
append-flags -std=gnu89
[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD
[[ ${CHOST} == *-solaris* ]] && append-cppflags -DNO_LCHMOD -DBSD4_4
use bzip2 && append-cppflags -DUSE_BZIP2
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DUSE_ICONV_MAPPING