diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-24 02:54:40 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-24 19:12:43 +0800 |
commit | d7262a65a15178c8782c5d76c506d9b48fd8b788 (patch) | |
tree | a843bd8e679586ea7854dd6bb6e42c5151af2ae9 /metadata | |
parent | 8cd3e024e42d6aa22a97410a382b1da4d44c1182 (diff) | |
download | gvfs-d7262a65a15178c8782c5d76c506d9b48fd8b788.tar.gz |
build: Fix gvfsd-metadata build when gudev is disabled
The order of dependencies of gvfsd-metadata is reversed to workaround
undefined reference error on FreeBSD when -Wl,--as-needed is used.
https://bugzilla.gnome.org/show_bug.cgi?id=786149
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/meson.build | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/metadata/meson.build b/metadata/meson.build index e1625b80..4d47850b 100644 --- a/metadata/meson.build +++ b/metadata/meson.build @@ -64,15 +64,20 @@ libmetadata_dep = declare_dependency( dependencies: glib_deps ) +metadata_deps = [ + libmetadata_dep, + libgvfscommon_dep +] + +if enable_gudev + metadata_deps += gudev_dep +endif + executable( 'gvfsd-metadata', 'meta-daemon.c', include_directories: top_inc, - dependencies: [ - libgvfscommon_dep, - libmetadata_dep, - gudev_dep - ], + dependencies: metadata_deps, c_args: cflags, install: true, install_rpath: gvfs_rpath, @@ -93,8 +98,8 @@ if enable_devel_utils app + '.c', include_directories: top_inc, dependencies: [ - libgvfscommon_dep, - libmetadata_dep + libmetadata_dep, + libgvfscommon_dep ], c_args: cflags ) |