[Buildroot] [RFC v1] libdrm: fix static build (tests/nouveau)

Peter Seiderer ps.report at gmx.net
Sun Aug 4 20:41:01 UTC 2019


Signed-off-by: Peter Seiderer <ps.report at gmx.net>
---
 ...0005-meson.build-fix-libdl-detection.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/libdrm/0005-meson.build-fix-libdl-detection.patch

diff --git a/package/libdrm/0005-meson.build-fix-libdl-detection.patch b/package/libdrm/0005-meson.build-fix-libdl-detection.patch
new file mode 100644
index 0000000000..2a4efa43ea
--- /dev/null
+++ b/package/libdrm/0005-meson.build-fix-libdl-detection.patch
@@ -0,0 +1,29 @@
+diff --git a/meson.build b/meson.build
+index 7aa5f8c..87e9e01 100644
+--- a/meson.build
++++ b/meson.build
+@@ -168,6 +168,7 @@ endif
+
+ # Among others FreeBSD does not have a separate dl library.
+ if not cc.has_function('dlsym')
++  # failes with br-arm-cortex-m4-full, empty libdl provided
+   dep_dl = cc.find_library('dl', required : with_nouveau)
+ else
+   dep_dl = []
+diff --git a/tests/meson.build b/tests/meson.build
+index fdf950b..9250cfd 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -44,8 +44,11 @@ endif
+ if with_etnaviv
+   subdir('etnaviv')
+ endif
++lib_type = get_option('default_library')
+ if with_nouveau
+-  subdir('nouveau')
++  if lib_type != 'static'
++    subdir('nouveau')
++  endif
+ endif
+
+ drmsl = executable(
--
2.22.0



More information about the buildroot mailing list