diff options
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index cf190aa..883f2c4 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -63,9 +63,6 @@ class PkgConfigModule: 'Requires.private: {}\n'.format(' '.join(priv_reqs))) if len(conflicts) > 0: ofile.write('Conflicts: {}\n'.format(' '.join(conflicts))) - if len(priv_libs) > 0: - ofile.write( - 'Libraries.private: {}\n'.format(' '.join(priv_libs))) ofile.write('Libs: -L${libdir}') msg = 'Library target {0!r} has {1!r} set. Compilers ' \ 'may not find it from its \'-l{2}\' linker flag in the ' \ @@ -80,6 +77,9 @@ class PkgConfigModule: mlog.log(mlog.red('WARNING:'), msg.format(l.name, 'name_suffix', lname, pcfile)) ofile.write(' -l{} '.format(lname)) ofile.write('\n') + if len(priv_libs) > 0: + ofile.write( + 'Libs.private: -L${libdir} {}\n'.format(' '.join(priv_libs))) ofile.write('Cflags:') for h in subdirs: if h == '.': |