mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-emulation/wine-proton: pass -mno-avx with mingw unconditionally
Upon further consideration 84924628f0
result in rather unexpected behavior even if we consider that
USE=custom-cflags is unsupported, and giving a way to skip -mno-avx
may not be all that worth it.
So revert plus tidy and add this bugref.
Closes: https://bugs.gentoo.org/912268
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -269,11 +269,13 @@ src_configure() {
|
||||
: "${CROSSCFLAGS:=$(
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
filter-flags '-mfunction-return=thunk*' #878849
|
||||
|
||||
# -mavx with mingw-gcc has a history of obscure issues and
|
||||
# disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
|
||||
# crashes with -march=skylake >=wine-8.10, similar issues with
|
||||
# znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
|
||||
use custom-cflags || append-cflags -mno-avx
|
||||
append-cflags -mno-avx #912268
|
||||
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
|
||||
@@ -273,14 +273,17 @@ src_configure() {
|
||||
: "${CROSSCFLAGS:=$(
|
||||
# >=wine-7.21 <8.10's configure.ac does not pass -fno-strict when
|
||||
# it should (can be removed when proton is rebased on >=8.10)
|
||||
append-cflags '-fno-strict-aliasing'
|
||||
append-cflags -fno-strict-aliasing
|
||||
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
filter-flags '-mfunction-return=thunk*' #878849
|
||||
|
||||
# -mavx with mingw-gcc has a history of obscure issues and
|
||||
# disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
|
||||
# crashes with -march=skylake >=wine-8.10, similar issues with
|
||||
# znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
|
||||
use custom-cflags || append-cflags -mno-avx
|
||||
append-cflags -mno-avx #912268
|
||||
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
|
||||
@@ -277,14 +277,17 @@ src_configure() {
|
||||
: "${CROSSCFLAGS:=$(
|
||||
# >=wine-7.21 <8.10's configure.ac does not pass -fno-strict when
|
||||
# it should (can be removed when proton is rebased on >=8.10)
|
||||
append-cflags '-fno-strict-aliasing'
|
||||
append-cflags -fno-strict-aliasing
|
||||
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
filter-flags '-mfunction-return=thunk*' #878849
|
||||
|
||||
# -mavx with mingw-gcc has a history of obscure issues and
|
||||
# disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
|
||||
# crashes with -march=skylake >=wine-8.10, similar issues with
|
||||
# znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
|
||||
use custom-cflags || append-cflags -mno-avx
|
||||
append-cflags -mno-avx #912268
|
||||
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
|
||||
Reference in New Issue
Block a user