diff options
author | 2024-03-28 06:05:56 -0400 | |
---|---|---|
committer | 2024-03-28 06:10:06 -0400 | |
commit | 18bba14d15e78f2572f74788d2557e095b91ddfb (patch) | |
tree | 58e03a04f1394d9eadd393322d4085e79eba849b /app-emulation/dxvk/dxvk-2.2-r1.ebuild | |
parent | app-emulation/vkd3d-proton: filter -Wl,-z,* ... for C(XX)FLAGS (diff) | |
download | gentoo-18bba14d15e78f2572f74788d2557e095b91ddfb.tar.gz gentoo-18bba14d15e78f2572f74788d2557e095b91ddfb.tar.bz2 gentoo-18bba14d15e78f2572f74788d2557e095b91ddfb.zip |
app-emulation/dxvk: filter -Wl,-z,* ... for C(XX)FLAGS
strip-unsupported-flags handles this fine in LDFLAGS, but -Wl,*
are no-ops during compile-only tests (thus not stripped) and then
if a package compiles and links anything at same time it fails.
This used not to be a big problem but now that 23.0 profiles
do -Wl,-z,pack-relative-relocs (mingw ld has no -z) this is
hitting bashrc-mv users that tend to do CFLAGS="${LDFLAGS}"
by default. Tempting to ignore it because of how wrong it is,
but well.
An alternate route could be to eventually have strip-flags
and/or strip-unsupported-flags remove -Wl,* from non-LDFLAGS
given this could affect more than mingw (e.g. switching to
bfd when there is a lld-only option).
wrt bug #928038, this already been done a while ago for wine,
mingw64-runtime, and mingw64-toolchain itself and there *should*
have been only dxvk and vkd3d-proton left (now done).
Closes: https://bugs.gentoo.org/928038
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-emulation/dxvk/dxvk-2.2-r1.ebuild')
-rw-r--r-- | app-emulation/dxvk/dxvk-2.2-r1.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app-emulation/dxvk/dxvk-2.2-r1.ebuild b/app-emulation/dxvk/dxvk-2.2-r1.ebuild index 3273526f0700..1d3d3ded718f 100644 --- a/app-emulation/dxvk/dxvk-2.2-r1.ebuild +++ b/app-emulation/dxvk/dxvk-2.2-r1.ebuild @@ -108,6 +108,11 @@ src_configure() { unset AR CC CXX RC STRIP filter-flags '-fuse-ld=*' filter-flags '-mfunction-return=thunk*' #878849 + + # some bashrc-mv users tend to do CFLAGS="${LDFLAGS}" and then + # strip-unsupported-flags miss these during compile-only tests + # (primarily done for 23.0 profiles' -z, not full coverage) + filter-flags '-Wl,-z,*' #928038 fi CHOST_amd64=x86_64-w64-mingw32 |