package/libmbim: fix static build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 31 Jul 2021 21:53:30 +0000 (23:53 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 31 Jul 2021 22:02:51 +0000 (00:02 +0200)
Fix static build failure raised since switch to meson in commit
be76508af2b2253f95137a28198139732be2dcb3

Fixes:
 - http://autobuild.buildroot.org/results/8553211d87a2c41d8b47b51bbb193736fce49714

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libmbim/0001-src-libmbim-glib-meson.build-fix-static-build.patch [new file with mode: 0644]

diff --git a/package/libmbim/0001-src-libmbim-glib-meson.build-fix-static-build.patch b/package/libmbim/0001-src-libmbim-glib-meson.build-fix-static-build.patch
new file mode 100644 (file)
index 0000000..6ccad9a
--- /dev/null
@@ -0,0 +1,34 @@
+From ff1f9d7c9bc163de3117383b7cea9cd99585462a Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 31 Jul 2021 23:42:35 +0200
+Subject: [PATCH] src/libmbim-glib/meson.build: fix static build
+
+Replace shared_library by library to fix static build failure with
+toolchains that don't support dynamic library
+
+Fixes:
+ - http://autobuild.buildroot.org/results/8553211d87a2c41d8b47b51bbb193736fce49714
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status:
+https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/merge_requests/83]
+---
+ src/libmbim-glib/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/libmbim-glib/meson.build b/src/libmbim-glib/meson.build
+index e3337db..5de3564 100644
+--- a/src/libmbim-glib/meson.build
++++ b/src/libmbim-glib/meson.build
+@@ -76,7 +76,7 @@ version_header = configure_file(
+ symbol_map = join_paths(meson.current_source_dir(), 'symbol.map')
+-libmbim_glib = shared_library(
++libmbim_glib = library(
+   libname,
+   version: mbim_glib_version,
+   sources: version_header,
+-- 
+2.30.2
+