commit: 0f5d2d85b5bdfec98186f218c5f355e057d5e017 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Tue Aug 22 16:52:27 2023 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Tue Aug 22 17:35:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f5d2d85
dev-lang/php: fix LTO build (8.0 and 8.1 series) Closes: https://bugs.gentoo.org/866683 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> dev-lang/php/php-8.0.30.ebuild | 5 +++++ dev-lang/php/php-8.1.21.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dev-lang/php/php-8.0.30.ebuild b/dev-lang/php/php-8.0.30.ebuild index b6ce4bcbf1b4..8cdaf1ceb1d1 100644 --- a/dev-lang/php/php-8.0.30.ebuild +++ b/dev-lang/php/php-8.0.30.ebuild @@ -255,6 +255,11 @@ src_configure() { $(use_enable threads zts) ) + if is-flagq -flto; then + # https://bugs.gentoo.org/866683 + our_conf+=( --disable-gcc-global-regs ) + fi + our_conf+=( $(use_with apparmor fpm-apparmor) $(use_with argon2 password-argon2 "${EPREFIX}/usr") diff --git a/dev-lang/php/php-8.1.21.ebuild b/dev-lang/php/php-8.1.21.ebuild index 6fb08e8646fb..db53ccbaa5bb 100644 --- a/dev-lang/php/php-8.1.21.ebuild +++ b/dev-lang/php/php-8.1.21.ebuild @@ -259,6 +259,11 @@ src_configure() { $(use_enable threads zts) ) + if is-flagq -flto; then + # https://bugs.gentoo.org/866683 + our_conf+=( --disable-gcc-global-regs ) + fi + our_conf+=( $(use_with apparmor fpm-apparmor) $(use_with argon2 password-argon2 "${EPREFIX}/usr")
