diff --git a/gio/meson.build b/gio/meson.build index d20d751b5..ca969309a 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