app-emulation/dxvk: update flags filters

* -fstack-clash-protection (bug #758914): ICE was fixed, if still
  run into this then updating gcc to a newer _p* snapshot should
  sort it (alternatively, use released >=gcc-13.1.0)
* -fstack-protector* (bug #870136): mingw64-runtime-11.0.0 adds
  its own (partial) ssp support, allowing -D_FORTIFY_SOURCE=3 and
  -fstack-protector-strong without libssp. Using these to build
  Wine currently still leads to failure, but we can allow it here.

Bug: https://bugs.gentoo.org/758914
Bug: https://bugs.gentoo.org/870136
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2023-04-29 05:02:52 -04:00
parent 97613a229f
commit fca841ad33
5 changed files with 30 additions and 10 deletions

View File

@@ -73,10 +73,14 @@ src_configure() {
if [[ ${CHOST} != *-mingw* ]]; then
if [[ ! -v MINGW_BYPASS ]]; then
unset AR CC CXX RC STRIP
filter-flags '-fstack-clash-protection' #758914
filter-flags '-fstack-protector*' #870136
filter-flags '-fuse-ld=*'
filter-flags '-mfunction-return=thunk*' #878849
if has_version '<dev-util/mingw64-toolchain-11' ||
{ use crossdev-mingw &&
has_version "<cross-$(usex x86 i686 x86_64)-w64-mingw32/mingw64-runtime-11"; }
then
filter-flags '-fstack-protector*' #870136
fi
fi
CHOST_amd64=x86_64-w64-mingw32

View File

@@ -89,10 +89,14 @@ src_configure() {
if [[ ${CHOST} != *-mingw* ]]; then
if [[ ! -v MINGW_BYPASS ]]; then
unset AR CC CXX RC STRIP
filter-flags '-fstack-clash-protection' #758914
filter-flags '-fstack-protector*' #870136
filter-flags '-fuse-ld=*'
filter-flags '-mfunction-return=thunk*' #878849
if has_version '<dev-util/mingw64-toolchain-11' ||
{ use crossdev-mingw &&
has_version "<cross-$(usex x86 i686 x86_64)-w64-mingw32/mingw64-runtime-11"; }
then
filter-flags '-fstack-protector*' #870136
fi
fi
CHOST_amd64=x86_64-w64-mingw32

View File

@@ -98,10 +98,14 @@ src_configure() {
if [[ ${CHOST} != *-mingw* ]]; then
if [[ ! -v MINGW_BYPASS ]]; then
unset AR CC CXX RC STRIP
filter-flags '-fstack-clash-protection' #758914
filter-flags '-fstack-protector*' #870136
filter-flags '-fuse-ld=*'
filter-flags '-mfunction-return=thunk*' #878849
if has_version '<dev-util/mingw64-toolchain-11' ||
{ use crossdev-mingw &&
has_version "<cross-$(usex x86 i686 x86_64)-w64-mingw32/mingw64-runtime-11"; }
then
filter-flags '-fstack-protector*' #870136
fi
fi
CHOST_amd64=x86_64-w64-mingw32

View File

@@ -100,10 +100,14 @@ src_configure() {
if [[ ${CHOST} != *-mingw* ]]; then
if [[ ! -v MINGW_BYPASS ]]; then
unset AR CC CXX RC STRIP
filter-flags '-fstack-clash-protection' #758914
filter-flags '-fstack-protector*' #870136
filter-flags '-fuse-ld=*'
filter-flags '-mfunction-return=thunk*' #878849
if has_version '<dev-util/mingw64-toolchain-11' ||
{ use crossdev-mingw &&
has_version "<cross-$(usex x86 i686 x86_64)-w64-mingw32/mingw64-runtime-11"; }
then
filter-flags '-fstack-protector*' #870136
fi
fi
CHOST_amd64=x86_64-w64-mingw32

View File

@@ -94,10 +94,14 @@ src_configure() {
if [[ ${CHOST} != *-mingw* ]]; then
if [[ ! -v MINGW_BYPASS ]]; then
unset AR CC CXX RC STRIP
filter-flags '-fstack-clash-protection' #758914
filter-flags '-fstack-protector*' #870136
filter-flags '-fuse-ld=*'
filter-flags '-mfunction-return=thunk*' #878849
if has_version '<dev-util/mingw64-toolchain-11' ||
{ use crossdev-mingw &&
has_version "<cross-$(usex x86 i686 x86_64)-w64-mingw32/mingw64-runtime-11"; }
then
filter-flags '-fstack-protector*' #870136
fi
fi
CHOST_amd64=x86_64-w64-mingw32