pkgconfig: avoid appending slash at Cflags

otherwise it can break some compilations, see https://bugs.archlinux.org/task/54763
pull/2060/head
Laurent Carlier 8 years ago committed by Jussi Pakkanen
parent 138a8b221b
commit 0283a2fb41
  1. 7
      mesonbuild/modules/pkgconfig.py

@ -97,10 +97,11 @@ class PkgConfigModule(ExtensionModule):
ofile.write('Libs.private: {}\n'.format(' '.join(generate_libs_flags(priv_libs))))
ofile.write('Cflags:')
for h in subdirs:
if h == '.':
h = ''
ofile.write(' ')
ofile.write(os.path.join('-I${includedir}', h))
if h == '.':
ofile.write('-I${includedir}')
else:
ofile.write(os.path.join('-I${includedir}', h))
for f in extra_cflags:
ofile.write(' ')
ofile.write(f)

Loading…
Cancel
Save