- tlsdesc_test.patch: disable LTO in tlsdesc_test to suppress TLS
relaxation (patch by Andreas Schwab <schwab@suse.de>); see also https://gitlab.freedesktop.org/mesa/mesa/-/issues/11929 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1331
This commit is contained in:
parent
f4eb8e3975
commit
d9790edb6f
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 23 10:40:35 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
- tlsdesc_test.patch: disable LTO in tlsdesc_test to suppress TLS
|
||||||
|
relaxation (patch by Andreas Schwab <schwab@suse.de>); see also
|
||||||
|
https://gitlab.freedesktop.org/mesa/mesa/-/issues/11929
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 23 10:36:35 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
|
Mon Sep 23 10:36:35 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
@ -180,6 +180,7 @@ Patch13: python36-buildfix1.patch
|
|||||||
Patch14: python36-buildfix2.patch
|
Patch14: python36-buildfix2.patch
|
||||||
Patch15: u_fix_rust_bindgen.patch
|
Patch15: u_fix_rust_bindgen.patch
|
||||||
Patch16: u_fix-llvm19-build.patch
|
Patch16: u_fix-llvm19-build.patch
|
||||||
|
Patch17: tlsdesc_test.patch
|
||||||
# never to be upstreamed
|
# never to be upstreamed
|
||||||
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
|
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
|
||||||
Patch58: u_dep_xcb.patch
|
Patch58: u_dep_xcb.patch
|
||||||
@ -842,6 +843,7 @@ cp %{SOURCE6} subprojects/packagecache/
|
|||||||
%endif
|
%endif
|
||||||
%patch -P 15 -p1
|
%patch -P 15 -p1
|
||||||
%patch -P 16 -p1
|
%patch -P 16 -p1
|
||||||
|
%patch -P 17 -p1
|
||||||
# no longer needed since gstreamer-plugins-vaapi 1.18.4
|
# no longer needed since gstreamer-plugins-vaapi 1.18.4
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%patch -P 54 -p1
|
%patch -P 54 -p1
|
||||||
|
15
tlsdesc_test.patch
Normal file
15
tlsdesc_test.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
LTO defeats the -fpic workaround and enables TLS relaxation anyway
|
||||||
|
|
||||||
|
Index: mesa-24.2.2/meson.build
|
||||||
|
===================================================================
|
||||||
|
--- mesa-24.2.2.orig/meson.build
|
||||||
|
+++ mesa-24.2.2/meson.build
|
||||||
|
@@ -507,7 +507,7 @@ if not have_mtls_dialect
|
||||||
|
foreach tlsdesc_arg : ['-mtls-dialect=gnu2', '-mtls-dialect=desc']
|
||||||
|
# -fpic to force dynamic tls, otherwise TLS relaxation defeats check
|
||||||
|
tlsdesc_test = cc.run('int __thread x; int main() { return x; }',
|
||||||
|
- args: [tlsdesc_arg, '-fpic'],
|
||||||
|
+ args: [tlsdesc_arg, '-fpic', '-fno-lto'],
|
||||||
|
name: tlsdesc_arg)
|
||||||
|
if tlsdesc_test.returncode() == 0 and (
|
||||||
|
# check for lld 13 bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5665
|
Loading…
Reference in New Issue
Block a user