summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Zapata <jorgeluis.zapata@gmail.com>2019-03-30 02:28:24 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2019-04-04 14:32:15 +0200
commit1517f9921afffe4d6bf8b1e8be0e321437b9f062 (patch)
tree683502cdee03bbd420f196eb8ce10432aa8536e9
parentd71068f5b38363b8712a539eb42b0601ca5f5303 (diff)
glib-networking: add missing .la file for static linking
In case of static linking a module we also need the .la file in order to know the dependencies. Create it.
-rw-r--r--recipes/glib-networking.recipe8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/glib-networking.recipe b/recipes/glib-networking.recipe
index 52c2788b..494e495d 100644
--- a/recipes/glib-networking.recipe
+++ b/recipes/glib-networking.recipe
@@ -1,6 +1,7 @@
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import os
from cerbero.utils.shell import which
+from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'glib-networking'
@@ -29,3 +30,10 @@ class Recipe(recipe.Recipe):
files_misc = ['lib/gio/modules/libgiognutls%(mext)s']
files_lang = ['glib-networking']
files_devel = ['lib/gio/modules/libgiognutls.a']
+
+ def post_install(self):
+ # Meson does not generate la files
+ LibtoolLibrary('giognutls', None, None, None,
+ os.path.join(self.config.libdir, 'gio', 'modules'),
+ self.config.target_platform, deps=['gnutls']).save()
+ super().post_install()