Jo-Philipp Wich 6de7406d54 pkgconf: always retain -I and -L flags
The pkgconf fork filters -I and -L flag values from .pc files which match
pkgconf's builtin system directory value.

During configure, pkgconf derives the default system include and library
search path values from exec_prefix, which is set to staging_dir/host in
the host tool build phase.

Due to that, pkgconf will drop all -I and -L flags pointing to
staging_dir/host/include or staging_dir/host/lib, unless invoked with
--keep-system-cflags and --keep-system-libs respectively, breaking our
kernel libelf discovery / stack validation workarounds.

In order to inhibit the filtering, add --keep-system-cflags and
--keep-system-libs to our pkg-config shell wrapper.

Fixes: GH#2832
Fixes: 867298cf47 ("tools/pkg-config: Replace with pkgconf")
Ref: https://lists.infradead.org/pipermail/openwrt-devel/2020-March/022182.html
Ref: https://git.openwrt.org/fe43969336201f2cc7d103b68fd6e65989bee184
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Petr Štetiar <ynezz@true.cz>
2020-03-15 20:32:10 +01:00
..
2019-05-22 21:27:44 +02:00
2020-02-19 22:02:47 +01:00
2020-01-16 18:59:42 +01:00
2020-03-12 21:31:17 +01:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2020-02-18 21:39:23 +01:00
2020-03-14 13:20:06 +00:00
2019-02-26 23:20:04 +01:00
2020-02-18 21:38:51 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2019-02-10 20:51:09 +01:00
2018-12-24 17:05:57 +01:00
2020-02-18 21:39:03 +01:00
2019-11-24 21:35:45 +01:00
2020-02-18 21:39:14 +01:00
2018-06-08 09:56:26 +02:00
2019-03-10 21:36:28 +01:00
2019-09-03 11:56:47 +02:00
2020-03-14 13:20:06 +00:00