zlib: Use relative paths in pkg-config metadata file
authorJeffery To <jeffery.to@gmail.com>
Wed, 15 May 2019 14:30:24 +0000 (22:30 +0800)
committerPetr Štetiar <ynezz@true.cz>
Fri, 17 May 2019 19:41:43 +0000 (21:41 +0200)
commit782eda9750e5f0d2bda103e1fbe5154032e85822
tree8c4dcb63a03f43d72358e4baf22fc04f57a1be46
parent3fcb70927597bad2896c6b39b2bdd2bb4c371bf3
zlib: Use relative paths in pkg-config metadata file

The buildroot pkg-config (in staging_dir/host/bin) overrides the prefix
and exec_prefix variables in *.pc files, to supply the correct
(buildroot) paths for callers. If other variables are not defined
relative to prefix and exec_prefix, then the returned values will be
incorrect.

The default zlib.pc file generated by cmake contains absolute paths.
This patches the file to use relative paths (relative to ${prefix} and
${exec_prefix}).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
package/libs/zlib/Makefile
package/libs/zlib/patches/004-relative-pkg-config-paths.patch [new file with mode: 0644]