diff options
Diffstat (limited to 'app-emulation/wine-staging/wine-staging-8.0.ebuild')
-rw-r--r-- | app-emulation/wine-staging/wine-staging-8.0.ebuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app-emulation/wine-staging/wine-staging-8.0.ebuild b/app-emulation/wine-staging/wine-staging-8.0.ebuild index d5832e55b076..9b2fa68aa6e5 100644 --- a/app-emulation/wine-staging/wine-staging-8.0.ebuild +++ b/app-emulation/wine-staging/wine-staging-8.0.ebuild @@ -201,6 +201,18 @@ src_prepare() { default + if tc-is-clang; then + if use mingw; then + # -mabi=ms was ignored by <clang:16 then turned error in :17 + # and it still gets used in install phase despite USE=mingw, + # drop as a quick fix for now which hopefully should be safe + sed -i '/MSVCRTFLAGS=/s/-mabi=ms//' configure.ac || die + else + # ./configure will abort looking for -mabi=ms, so do it early + die "building ${PN} with clang requires USE=mingw to be enabled" + fi + fi + # ensure .desktop calls this variant + slot sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die |