From 8ea17322e4624d6f63964b525326c41e133367e1 Mon Sep 17 00:00:00 2001 From: Ippytraxx Date: Fri, 17 Jun 2016 10:08:59 +0200 Subject: [PATCH] Add custom_install_dir to ld path in pkgconfig module --- mesonbuild/modules/pkgconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index fe5ca45dc..6ee558bae 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -43,6 +43,8 @@ class PkgConfigModule: ofile.write('Libraries.private: {}\n'.format(' '.join(priv_libs))) ofile.write('Libs: -L${libdir} ') for l in libraries: + if l.custom_install_dir: + ofile.write('-L${prefix}/%s ' % l.custom_install_dir) ofile.write('-l%s ' % l.name) ofile.write('\n') ofile.write('CFlags: ')