commit:     346d3aa682588060711493806cd9464bd55291f2
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 15:39:52 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 16:56:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=346d3aa6

app-emulation/dxvk: filter -fuse-ld for mingw

flag-o-matic is looking at respecting -fuse-ld for test-flags-CCLD,
which is good but don't want this when doing the user-unexpected
switch to mingw toolchain (filtering feels more solid either way).

Users can use MINGW_BYPASS=1 if really need full control.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/dxvk/dxvk-1.10.1.ebuild | 5 ++++-
 app-emulation/dxvk/dxvk-1.10.2.ebuild | 5 ++++-
 app-emulation/dxvk/dxvk-9999.ebuild   | 5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/app-emulation/dxvk/dxvk-1.10.1.ebuild 
b/app-emulation/dxvk/dxvk-1.10.1.ebuild
index d260df14098d..afc25d76d52c 100644
--- a/app-emulation/dxvk/dxvk-1.10.1.ebuild
+++ b/app-emulation/dxvk/dxvk-1.10.1.ebuild
@@ -64,7 +64,10 @@ src_configure() {
        append-flags -mno-avx
 
        if [[ ${CHOST} != *-mingw* ]]; then
-               [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP
+               if [[ ! -v MINGW_BYPASS ]]; then
+                       unset AR CC CXX RC STRIP
+                       filter-flags '-fuse-ld=*'
+               fi
 
                CHOST_amd64=x86_64-w64-mingw32
                CHOST_x86=i686-w64-mingw32

diff --git a/app-emulation/dxvk/dxvk-1.10.2.ebuild 
b/app-emulation/dxvk/dxvk-1.10.2.ebuild
index d260df14098d..afc25d76d52c 100644
--- a/app-emulation/dxvk/dxvk-1.10.2.ebuild
+++ b/app-emulation/dxvk/dxvk-1.10.2.ebuild
@@ -64,7 +64,10 @@ src_configure() {
        append-flags -mno-avx
 
        if [[ ${CHOST} != *-mingw* ]]; then
-               [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP
+               if [[ ! -v MINGW_BYPASS ]]; then
+                       unset AR CC CXX RC STRIP
+                       filter-flags '-fuse-ld=*'
+               fi
 
                CHOST_amd64=x86_64-w64-mingw32
                CHOST_x86=i686-w64-mingw32

diff --git a/app-emulation/dxvk/dxvk-9999.ebuild 
b/app-emulation/dxvk/dxvk-9999.ebuild
index d260df14098d..afc25d76d52c 100644
--- a/app-emulation/dxvk/dxvk-9999.ebuild
+++ b/app-emulation/dxvk/dxvk-9999.ebuild
@@ -64,7 +64,10 @@ src_configure() {
        append-flags -mno-avx
 
        if [[ ${CHOST} != *-mingw* ]]; then
-               [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP
+               if [[ ! -v MINGW_BYPASS ]]; then
+                       unset AR CC CXX RC STRIP
+                       filter-flags '-fuse-ld=*'
+               fi
 
                CHOST_amd64=x86_64-w64-mingw32
                CHOST_x86=i686-w64-mingw32

Reply via email to