pkgconfig: Only warn for suffix if the filename doesn't start with lib

pull/896/head
Nirbheek Chauhan 8 years ago
parent d819914af0
commit 674b520206
  1. 6
      mesonbuild/modules/pkgconfig.py

@ -50,7 +50,11 @@ class PkgConfigModule:
for l in libraries:
if l.custom_install_dir:
ofile.write('-L${prefix}/%s ' % l.custom_install_dir)
if l.name_prefix_set:
# Warn, but not if the filename starts with 'lib'. This can
# happen, for instance, if someone really wants to use the
# 'lib' prefix on all systems, not just on UNIX, or if the the
# target name itself starts with 'lib'.
if l.name_prefix_set and not l.filename.startswith('lib'):
mlog.log(mlog.red('WARNING:'), msg.format(l.name, 'name_prefix', pcfile))
if l.name_suffix_set:
mlog.log(mlog.red('WARNING:'), msg.format(l.name, 'name_suffix', pcfile))

Loading…
Cancel
Save