[file-roller/wip/jtojnar/gir-cleanups: 5/12] build: Use export_dynamic kwarg instead of link_args




commit 71821f53e2ba3953d9a9de2deb197ed539ad435e
Author: Jan Tojnar <jtojnar gmail com>
Date:   Wed Aug 17 13:14:39 2022 +0200

    build: Use export_dynamic kwarg instead of link_args
    
    This is cleaner and will allow us to link against the program in tests.

 src/meson.build | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 02031928..989e13b9 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -133,13 +133,11 @@ fr_exe = executable('file-roller',
     use_json_glib ? libjson_glib_dep : [],
     use_libarchive ? libarchive_dep : []
   ],
-  link_args: [
-    # Required for GIRepository to be able to dump symbols.
-    build_introspection ? '-Wl,--export-dynamic' : [],
-  ],
   include_directories : config_inc,
   c_args : c_args,
-  install : true
+  install : true,
+  # Required for GIRepository to be able to dump symbols.
+  export_dynamic: build_introspection,
 )
 
 if build_introspection


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