mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 17:11:34 +02:00
sys-libs/zlib: Sync with Gentoo
It's from Gentoo commit 5fe0054b3e6a55983086d25284fd7e7a25506f13.
This commit is contained in:
parent
f33cd03761
commit
e4272f3759
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -6,7 +6,7 @@ EAPI=8
|
||||
# Worth keeping an eye on 'develop' branch upstream for possible backports.
|
||||
AUTOTOOLS_AUTO_DEPEND="no"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/madler.asc
|
||||
inherit autotools multilib-minimal flag-o-matic usr-ldscript verify-sig
|
||||
inherit autotools multilib-minimal flag-o-matic toolchain-funcs usr-ldscript verify-sig
|
||||
|
||||
CYGWINPATCHES=(
|
||||
"https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.11-gzopen_w.patch -> ${PN}-1.2.11-cygwin-gzopen_w.patch"
|
||||
@ -92,6 +92,13 @@ multilib_src_configure() {
|
||||
# because it would pass it even for older binutils.
|
||||
use sparc && append-flags $(test-flags-CCLD -Wl,--no-warn-rwx-segments)
|
||||
|
||||
# ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
|
||||
# https://github.com/gentoo/gentoo/pull/28355
|
||||
# mold needs this too but right now tc-ld-is-mold is also not available
|
||||
if tc-ld-is-lld; then
|
||||
append-ldflags -Wl,--undefined-version
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*|*-cygwin*)
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user