Commit eee4bb84 authored by Iñigo Martínez's avatar Iñigo Martínez Committed by Ondrej Holy

build: Link libgvfscommon to libmetadata

`gvfsd-metadata` uses the `gvfs_randomize_string` function by
including `gvfsutils.h` header file from `libgvfscommon`. However,
the library is not linked, only the directory is included.

This has been fixed by linking `libgvfscommon` to `libmetadata`.
parent ca8a77fe
Pipeline #203719 passed with stage
in 1 minute and 29 seconds
......@@ -33,7 +33,6 @@ sources = uri_parser_sources + uri_utils + files(
deps = [
gio_unix_dep,
libgvfscommon_dep,
libmetadata_dep,
]
......
......@@ -47,6 +47,7 @@ sources = files(
deps = [
gio_dep,
glib_dep,
libgvfscommon_dep,
]
cflags = [
......@@ -58,7 +59,7 @@ cflags = [
libmetadata = static_library(
'metadata',
sources: sources + [dbus_sources],
include_directories: [top_inc, common_inc],
include_directories: top_inc,
dependencies: deps + [gio_unix_dep],
c_args: cflags,
pic: true,
......@@ -71,10 +72,7 @@ libmetadata_dep = declare_dependency(
link_with: libmetadata,
)
deps = [
libgvfscommon_dep,
libmetadata_dep,
]
deps = [libmetadata_dep]
if enable_gudev
deps += gudev_dep
......@@ -104,10 +102,7 @@ if enable_devel_utils
app,
app + '.c',
include_directories: top_inc,
dependencies: [
libgvfscommon_dep,
libmetadata_dep,
],
dependencies: libmetadata_dep,
c_args: cflags,
)
endforeach
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment