1 From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
2 From: Francesco Giancane <francescogiancane8@gmail.com>
3 Date: Wed, 28 Feb 2018 21:32:24 +0100
4 Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed for
7 Add a patch to work around absence of dlvsym() on musl
8 (wasn't previously a problem as autotools weren't building tests by default)
10 Upstream-Status: Pending
11 Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
12 Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>
14 meson_options.txt | 3 +++
15 test/meson.build | 6 +++---
16 2 files changed, 6 insertions(+), 3 deletions(-)
18 diff --git a/meson_options.txt b/meson_options.txt
19 index b5d7c98..aa849c2 100644
20 --- a/meson_options.txt
21 +++ b/meson_options.txt
24 type: 'boolean', value: false,
25 description: 'Enable generating the Epoxy API reference (depends on Doxygen)')
27 + type: 'boolean', value: true,
28 + description: 'Whether dlvsym() is available (it is not when using musl C library)')
31 choices: [ 'auto', 'yes', 'no' ],
32 diff --git a/test/meson.build b/test/meson.build
33 index c5788b4..4c46ae6 100644
34 --- a/test/meson.build
35 +++ b/test/meson.build
36 @@ -92,8 +92,8 @@ if build_glx
37 [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], [], true ],
38 [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ '-static' ], libtype == 'static' ],
39 [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ], has_znow ],
40 - [ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple ],
41 - [ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple ],
42 + [ 'glx_alias_prefer_same_name', [ 'glx_alias_prefer_same_name.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple and get_option('has-dlvsym') == true ],
43 + [ 'glx_gles2', [ 'glx_gles2.c', 'dlwrap.c', 'dlwrap.h' ], [], [ '-rdynamic' ], not build_apple and get_option('has-dlvsym') == true ],
46 foreach test: glx_tests
47 @@ -114,7 +114,7 @@ if build_glx
52 + if not build_apple and get_option('has-dlvsym') == true