Call pkg-config with libpng16 instead of libpng

Should fix compilation on linux systems that have libpng12 as their
default libpng. libpng16 was released over five years ago! Sigh...
Fixes #216
This commit is contained in:
Kovid Goyal 2017-12-06 20:54:46 +05:30
parent 466d96c167
commit 11b17c09ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -208,7 +208,7 @@ def kitty_env():
cflags.append('-DPRIMARY_VERSION={}'.format(version[0] + 4000))
cflags.append('-DSECONDARY_VERSION={}'.format(version[1]))
at_least_version('harfbuzz', 1, 5)
cflags.extend(pkg_config('libpng', '--cflags-only-I'))
cflags.extend(pkg_config('libpng16', '--cflags-only-I'))
if is_macos:
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))