dev-libs/cyrus-sasl: Sync with Gentoo

It's from Gentoo commit 9f10d53dc71950701eb206c84c62019ac0fe44ca.
This commit is contained in:
Flatcar Buildbot 2024-07-01 07:13:02 +00:00 committed by Mathieu Tortuyaux
parent 53f5441d8c
commit 5b024b0198
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -60,7 +60,12 @@ src_prepare() {
src_configure() { src_configure() {
export CC_FOR_BUILD="$(tc-getBUILD_CC)" export CC_FOR_BUILD="$(tc-getBUILD_CC)"
append-flags -fno-strict-aliasing # -Werror=lto-type-mismatch
# https://bugs.gentoo.org/894684
# https://github.com/cyrusimap/cyrus-sasl/pull/771
#
# Fixed upstream in git master but not released.
use srp && filter-lto
if [[ ${CHOST} == *-solaris* ]] ; then if [[ ${CHOST} == *-solaris* ]] ; then
# getpassphrase is defined in /usr/include/stdlib.h # getpassphrase is defined in /usr/include/stdlib.h