Add custom_install_dir to ld path in pkgconfig module

This commit is contained in:
Ippytraxx 2016-06-17 10:08:59 +02:00
parent 68dbbeb78f
commit 8ea17322e4
1 changed files with 2 additions and 0 deletions

View File

@ -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: ')