From 75949673f38270397841d9c2322dbb774ac41554 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 11 Aug 2023 15:35:17 +0100 Subject: gentoo auto-resync : 11:08:2023 - 15:35:17 --- .../wine-vanilla/wine-vanilla-8.13.ebuild | 36 ++++++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'app-emulation/wine-vanilla/wine-vanilla-8.13.ebuild') diff --git a/app-emulation/wine-vanilla/wine-vanilla-8.13.ebuild b/app-emulation/wine-vanilla/wine-vanilla-8.13.ebuild index 9f0672c16b6e..8eec4853243e 100644 --- a/app-emulation/wine-vanilla/wine-vanilla-8.13.ebuild +++ b/app-emulation/wine-vanilla/wine-vanilla-8.13.ebuild @@ -4,6 +4,7 @@ EAPI=8 MULTILIB_COMPAT=( abi_x86_{32,64} ) +# note: multilib+wrapper are not unused, currently a pkgcheck false positive inherit autotools flag-o-matic multilib multilib-build inherit prefix toolchain-funcs wrapper @@ -124,8 +125,11 @@ DEPEND=" sys-kernel/linux-headers X? ( x11-base/xorg-proto )" BDEPEND=" + || ( + sys-devel/binutils + sys-devel/lld + ) dev-lang/perl - sys-devel/binutils sys-devel/bison sys-devel/flex virtual/pkgconfig @@ -181,6 +185,18 @@ src_prepare() { default + if tc-is-clang; then + if use mingw; then + # -mabi=ms was ignored by /dev/null) == mold* ]] && - append-ldflags -fuse-ld=bfd + # wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097) + # (do self test until https://github.com/gentoo/gentoo/pull/28355) + if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]] + then + has_version -b sys-devel/binutils && + append-ldflags -fuse-ld=bfd || + append-ldflags -fuse-ld=lld + strip-unsupported-flags + fi if use mingw; then use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH} -- cgit v1.2.3