libs: glib2: fix provided pkg-config and always use host tools 23881/head
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 11 Apr 2024 15:07:36 +0000 (17:07 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 5 May 2024 15:25:12 +0000 (17:25 +0200)
commit7cdf7b9c1ad1c86e86c0ae11a442a43dff5873ce
treec063cbe66a978bffaa9df0fcb55dd832b352721a
parent7410fe81889968b704b65115101ff1ee81b074cb
libs: glib2: fix provided pkg-config and always use host tools

For the InstallDev target, the pkg-config should point to the glib2 host
tools for glib_compile_resources, gdbus_codegen, glib_genmarshal and
glib_mkenums instead of pointing to the targets ones as they are
unusable by the host machine (due to crosscompiling)

Fix the pkg-config to reference the host tools by replaying the entry
and use the prefix_hostpkg variable provided by our pkg-config.

Link: https://github.com/openwrt/packages/pull/23881
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
libs/glib2/Makefile