Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 1 | From cee8e48c5344124e5d84307cb0c48ee0c9b3e684 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 2 | From: Fabio Berton <fabio.berton@ossystems.com.br> |
| 3 | Date: Wed, 12 Jun 2019 14:15:57 -0300 |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 4 | Subject: [PATCH] meson.build: make TLS GLX optional again |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 5 | Organization: O.S. Systems Software LTDA. |
| 6 | |
| 7 | This was optional with autotools, and needs to be disabled |
| 8 | when using musl C library, for instance. |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 13 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 14 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 15 | --- |
| 16 | meson.build | 4 +++- |
| 17 | meson_options.txt | 7 +++++++ |
| 18 | 2 files changed, 10 insertions(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/meson.build b/meson.build |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 21 | index b33b430aed4..0e50bb26c0a 100644 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 22 | --- a/meson.build |
| 23 | +++ b/meson.build |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 24 | @@ -369,7 +369,9 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless or with_plat |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 25 | endif |
| 26 | endif |
| 27 | |
| 28 | -pre_args += '-DGLX_USE_TLS' |
| 29 | +if get_option('glx-tls') |
| 30 | + pre_args += '-DGLX_USE_TLS' |
| 31 | +endif |
| 32 | if with_glx != 'disabled' |
| 33 | if not (with_platform_x11 and with_any_opengl) |
| 34 | error('Cannot build GLX support without X11 platform support and at least one OpenGL API') |
| 35 | diff --git a/meson_options.txt b/meson_options.txt |
| 36 | index 1f72faabee8..fcd49efea27 100644 |
| 37 | --- a/meson_options.txt |
| 38 | +++ b/meson_options.txt |
| 39 | @@ -339,6 +339,13 @@ option( |
| 40 | value : true, |
| 41 | description : 'Enable direct rendering in GLX and EGL for DRI', |
| 42 | ) |
| 43 | +option( |
| 44 | + 'glx-tls', |
| 45 | + type : 'boolean', |
| 46 | + value : true, |
| 47 | + description : 'Enable TLS support in GLX', |
| 48 | +) |
| 49 | + |
| 50 | option( |
| 51 | 'I-love-half-baked-turnips', |
| 52 | type : 'boolean', |