Use absolute path to target dir within gnome module.

Stuff like gtkdoc may not be run in the top-level build directory, so
these paths need to be absolute.

Fixes #1950.
pull/1966/head
Elliott Sales de Andrade 8 years ago
parent 797bca22a5
commit 6bc14424b4
  1. 2
      mesonbuild/modules/gnome.py

@ -294,7 +294,7 @@ class GnomeModule(ExtensionModule):
else:
link_command = ['-l' + lib.name]
if isinstance(lib, build.SharedLibrary):
libdir = state.backend.get_target_dir(lib)
libdir = os.path.join(state.environment.get_build_dir(), state.backend.get_target_dir(lib))
link_command.append('-L' + libdir)
# Needed for the following binutils bug:
# https://github.com/mesonbuild/meson/issues/1911

Loading…
Cancel
Save