Openwrt/tools
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
..
autoconf
automake
b43-tools
bc
bison tools/bison: Update to 3.5.1 2020-02-19 22:02:47 +01:00
cbootimage
cbootimage-configs
ccache
cmake tools/cmake: Update to 3.16.5 2020-03-12 21:31:17 +01:00
coreutils
dosfstools
e2fsprogs tools/e2fsprogs: Update to 1.45.5 2020-02-18 21:48:49 +01:00
elftosb
expat
findutils
firmware-utils mkrasimage: fix segmentation fault 2020-03-01 21:36:00 +01:00
flex
flock
genext2fs
gengetopt
gmp tools/gmp: Remove obsolete options 2020-02-18 21:39:23 +01:00
include build: fix kernel 5.4 on macos 2020-03-14 13:20:06 +00:00
isl
kernel2minor
libelf
libressl tools/libressl: Update to 3.0.2 2020-02-18 21:38:51 +01:00
libtool
lzma
lzma-old
m4
make-ext4fs
missing-macros
mkimage
mklibs
mm-macros
mpc
mpfr
mtd-utils
mtools
padjffs2
patch
patch-image
patchelf tools/patchelf: Update to 0.10 2020-02-18 21:39:03 +01:00
pkgconf pkgconf: always retain -I and -L flags 2020-03-15 20:32:10 +01:00
qemu
quilt
sdimage
sed tools/sed: Update to 4.8 2020-02-18 21:39:14 +01:00
sparse
squashfs
squashfskit4
sstrip
tar
upslug2
wrt350nv2-builder
xz
zip
zlib
Makefile build: fix kernel 5.4 on macos 2020-03-14 13:20:06 +00:00