diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-06-19 19:05:42 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-06-19 19:05:42 -0400 |
commit | 6bc14424b40b0741112737859b576ed9533f099a (patch) | |
tree | 4556f0d23e769d18595f77aace6d74e55c7e29e9 /mesonbuild | |
parent | 797bca22a5803cf37c6d44db2e7028db221fbfd8 (diff) | |
download | meson-6bc14424b40b0741112737859b576ed9533f099a.zip meson-6bc14424b40b0741112737859b576ed9533f099a.tar.gz meson-6bc14424b40b0741112737859b576ed9533f099a.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/gnome.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 6ec7040..3c80a09 100644 --- a/mesonbuild/modules/gnome.py +++ b/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 |