Set the pkgconfig.relocatable option to let Meson generate .pc files
that set a relative prefix, allowing installation at an arbitrary
path.

This removes the need to mangle the prefix setting after the fact
via scripts/lib/ptxd_make_world_install_mangle_pc.awk for Meson
based packages.

Signed-off-by: Philipp Zabel <p.za...@pengutronix.de>
---
 rules/pre/Rules.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index 46f6f872e360..cb3e82804538 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -258,6 +258,7 @@ CROSS_MESON_USR := \
        -Dbackend=ninja \
        -Dbuildtype=debugoptimized \
        -Dlibdir=$(CROSS_LIB_DIR) \
+       -Dpkgconfig.relocatable=true \
        -Dprefix=/usr
 
 CROSS_MESON_ENV = \
-- 
2.30.2


Reply via email to