Skip to content

Commit

Permalink
Use absolute path to target dir within gnome module.
Browse files Browse the repository at this point in the history
Stuff like gtkdoc may not be run in the top-level build directory, so
these paths need to be absolute.

Fixes mesonbuild#1950.
  • Loading branch information
QuLogic committed Jun 19, 2017
1 parent 797bca2 commit 6bc1442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/modules/gnome.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def _get_link_args(self, state, lib, depends=None, include_rpath=False,
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
Expand Down

0 comments on commit 6bc1442

Please sign in to comment.