aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-09-22 11:54:37 -0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-09-28 12:58:16 -0700
commit533997891ee364a45b0bd0af7f46b6dc03bd8772 (patch)
treed777bd41f08a63260250d761f99b598af9568e4b /mesonbuild/backend/backends.py
parentca4c8de09fdf5081a9fbed8f9b128c569b5a9971 (diff)
downloadmeson-533997891ee364a45b0bd0af7f46b6dc03bd8772.zip
meson-533997891ee364a45b0bd0af7f46b6dc03bd8772.tar.gz
meson-533997891ee364a45b0bd0af7f46b6dc03bd8772.tar.bz2
backend: Make sure to normalize paths before checking if it is a system dir
Otherwise if we for some reason get '/usr/lib/../lib' in there we end up saying it is not a system path. And for some reason here I got: ``` $ pkg-config --libs libffi  148  ST 117   hotdoc -L/usr/lib/../lib -lffi ```
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 0e7e8e0..78c2877 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -361,6 +361,7 @@ class Backend:
@staticmethod
def _libdir_is_system(libdir, compilers, env):
+ libdir = os.path.normpath(libdir)
for cc in compilers.values():
if libdir in cc.get_library_dirs(env):
return True