[nautilus-python/wip/jtojnar/gmodule] build: Add explicit GModule dependency




commit 9a74cae1024aa279d2d70af2bf298cd1b57c1997
Author: Jan Tojnar <jtojnar gmail com>
Date:   Wed Oct 5 20:48:18 2022 +0200

    build: Add explicit GModule dependency
    
    The build may fail with underlinking on some distros:
    
        src/nautilus-python.c:158: undefined reference to `g_module_open'

 meson.build     | 1 +
 src/meson.build | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 3146e5f..416ace6 100644
--- a/meson.build
+++ b/meson.build
@@ -21,6 +21,7 @@ pygobject_minor_version = 0
 pygobject_micro_version = 0
 pygobject = dependency('pygobject-3.0', version: f'>= 
@pygobject_major_version@.@pygobject_minor_version@.@pygobject_micro_version@')
 libnautilus_extension = dependency('libnautilus-extension-4', version: '>= 43.beta')
+gmodule = dependency('gmodule-2.0', version: '>= 2.44')
 python_dep = python3.dependency(embed: true)
 
 nautilus_extension_dir = libnautilus_extension.get_variable('extensiondir', pkgconfig_define: ['libdir', 
libdir])
diff --git a/src/meson.build b/src/meson.build
index 26fb550..5e65446 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -7,6 +7,7 @@ nautilus_python = shared_module(
   dependencies: [
     libnautilus_extension,
     pygobject,
+    gmodule,
     python_dep,
   ],
   include_directories: [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]