|
@@ -1,4 +1,4 @@
|
|
|
-From 3d6a2db2270346236dd6247e0648ea0c949ba468 Mon Sep 17 00:00:00 2001
|
|
|
+From 59934e2116e025ecfe23baf6febc4a0eb85f60cd Mon Sep 17 00:00:00 2001
|
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
Date: Sat, 15 Feb 2020 15:13:59 +0100
|
|
|
Subject: [PATCH] mesonbuild/dependencies/base.py: add pkg_config_static
|
|
@@ -20,24 +20,26 @@ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
|
[Rebased on 0.57.1]
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
+[rebased on 1.3.0]
|
|
|
+Signed-off-by: Antoine Coutant <antoine.coutant@smile.fr>
|
|
|
---
|
|
|
- mesonbuild/dependencies/pkgconfig.py | 3 ++-
|
|
|
- 1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
+ mesonbuild/dependencies/pkgconfig.py | 2 +-
|
|
|
+ 1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py
|
|
|
-index 1e8d9132e..d902ba215 100644
|
|
|
+index e86206b88..94888657d 100644
|
|
|
--- a/mesonbuild/dependencies/pkgconfig.py
|
|
|
+++ b/mesonbuild/dependencies/pkgconfig.py
|
|
|
-@@ -338,7 +338,8 @@ class PkgConfigDependency(ExternalDependency):
|
|
|
- env = None
|
|
|
- libcmd = ['--libs']
|
|
|
-
|
|
|
-- if self.static:
|
|
|
-+ if self.static or \
|
|
|
+@@ -169,7 +169,8 @@ class PkgConfigCLI(PkgConfigInterface):
|
|
|
+ env['PKG_CONFIG_ALLOW_SYSTEM_LIBS'] = '1'
|
|
|
+ args: T.List[str] = []
|
|
|
+ args += self._define_variable_args(define_variable)
|
|
|
+- if static:
|
|
|
++ if static or \
|
|
|
+ (self.env.properties[self.for_machine].get('pkg_config_static', None) == 'true'):
|
|
|
- libcmd.append('--static')
|
|
|
-
|
|
|
- libcmd.append(self.name)
|
|
|
---
|
|
|
+ args.append('--static')
|
|
|
+ args += ['--libs', name]
|
|
|
+ ret, out, err = self._call_pkgbin(args, env=env)
|
|
|
+--
|
|
|
2.25.1
|
|
|
|