1From c9036706b9f724f09ac6288f82b53f2e76264ec7 Mon Sep 17 00:00:00 2001
2From: Peter Seiderer <ps.report@gmx.net>
3Date: Mon, 25 Nov 2019 15:59:15 +0100
4Subject: [PATCH] tests/meson.build: disable nouveau tests for static build
5
6Signed-off-by: Peter Seiderer <ps.report@gmx.net>
7---
8Notes:
9
10  - the existing test/check for static build in meson.build does not
11    catch this case because e.g. the buildroot toolchain
12    br-arm-full-static-2019.05.1 provides an empty libdl.a
13
14  169 # Among others FreeBSD does not have a separate dl library.
15  170 if not cc.has_function('dlsym')
16  171   dep_dl = cc.find_library('dl', required : with_nouveau)
17  172 else
18  173   dep_dl = []
19  174 endif
20---
21 tests/meson.build | 5 ++++-
22 1 file changed, 4 insertions(+), 1 deletion(-)
23
24diff --git a/tests/meson.build b/tests/meson.build
25index 6c8ddd9..f7cb5f0 100644
26--- a/tests/meson.build
27+++ b/tests/meson.build
28@@ -44,8 +44,11 @@ endif
29 if with_etnaviv
30   subdir('etnaviv')
31 endif
32+lib_type = get_option('default_library')
33 if with_nouveau
34-  subdir('nouveau')
35+  if lib_type != 'static'
36+    subdir('nouveau')
37+  endif
38 endif
39
40 drmsl = executable(
41--
422.24.0
43
44