[glib: 1/2] gio: Don't bundle gtrace in static builds




commit 1cc685abc4b9202976d59860a72df1381215b715
Author: Olivier CrĂȘte <olivier crete collabora com>
Date:   Mon Jun 20 16:09:51 2022 -0400

    gio: Don't bundle gtrace in static builds
    
    They're already in the libglib.a file and it prevents the build
    from completing.

 gio/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/meson.build b/gio/meson.build
index d20d751b5f..ca969309a4 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -581,9 +581,12 @@ gio_sources = files(
   'gzlibdecompressor.c',
   'glistmodel.c',
   'gliststore.c',
-  '../glib/gtrace.c',
 )
 
+if get_option('default_library') != 'static'
+  gio_sources += files ('../glib/gtrace.c')
+endif
+
 gio_sources += appinfo_sources
 gio_sources += contenttype_sources
 gio_sources += gdbus_daemon_sources


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