Jo-Philipp Wich 4da832e201 tools: zlib: do not hardcode the install prefix in zlib.pc
Our pkg-config wrapper relies on the ability to redefine the $prefix and
$exec_prefix variables in order to construct proper search paths relative
to the build environment.

Patch the .pc file template to construct libdir, sharedlibdir and includedir
relative to the ${prefix} variable so that it can be overridden as needed.

This also fixes the libxml2/host build issue raised at
https://github.com/openwrt/packages/issues/6073 - it was caused by libxml2's
configure picking up a wrong host search path through zlib.pc, letting it
include the wrong endian.h, causing spurious member redeclaration errors in
system headers.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-24 17:07:10 +02:00
..
2016-12-22 17:02:42 +01:00
2016-12-16 22:39:22 +01:00
2018-02-07 12:03:45 +01:00
2018-05-05 07:53:44 +02:00
2017-12-16 14:41:37 +01:00
2017-01-03 14:24:33 +01:00
2017-05-25 19:01:07 +02:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2018-04-11 21:02:50 +02:00
2016-12-16 22:39:22 +01:00
2018-02-12 16:27:56 +08:00
2016-12-16 22:39:22 +01:00
2018-01-17 08:52:54 +01:00
2018-05-05 07:13:41 +02:00
2018-01-20 20:22:01 +01:00
2018-05-05 07:13:53 +02:00