Skip to content

Commit 95c33ff

Browse files
committed
package/libmanette: fix static build
Import a one-line patch that removes the hardcoded usage of shared_library() from the Meson build system in favor of plain library(), which allows to choose a static build as well. Fixes: - http://autobuild.buildroot.net/results/7263324435d6d25d7da98824d4313e7c45071de8 - http://autobuild.buildroot.net/results/9e6c807455b5a4e8986e8388426d98024119aa9c Signed-off-by: Adrian Perez de Castro <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]>
1 parent c364796 commit 95c33ff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 003c2e84d95357bbbef72fb395ef85f1650097a3 Mon Sep 17 00:00:00 2001
2+
From: Adrian Perez de Castro <[email protected]>
3+
Date: Fri, 23 Sep 2022 14:35:51 +0300
4+
Subject: [PATCH] Meson: Un-hardcode building a shared library
5+
6+
Use library() instead of shared_library() to allow specifying which kind
7+
of library to build with "meson setup --default-library ..."
8+
9+
This allows more easily incorporating libmanette in an application e.g.
10+
as a Meson subproject which gets built into a program as a static
11+
library.
12+
13+
Signed-off-by: Adrian Perez de Castro <[email protected]>
14+
[Upstream status: https://gitlab.gnome.org/GNOME/libmanette/-/merge_requests/84]
15+
---
16+
src/meson.build | 2 +-
17+
1 file changed, 1 insertion(+), 1 deletion(-)
18+
19+
diff --git a/src/meson.build b/src/meson.build
20+
index c140cac..b71d090 100644
21+
--- a/src/meson.build
22+
+++ b/src/meson.build
23+
@@ -63,7 +63,7 @@ if gudev.found()
24+
libmanette_deps += [ gudev ]
25+
endif
26+
27+
-libmanette_lib = shared_library(
28+
+libmanette_lib = library(
29+
libmanette_module,
30+
libmanette_sources,
31+
c_args: libmanette_c_args,
32+
--
33+
2.37.3
34+

0 commit comments

Comments
 (0)