From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] pre/Rules.make: let Meson generate relocatable .pc files
Date: Wed, 11 Jan 2023 11:19:16 +0100 [thread overview]
Message-ID: <20230111101916.3749538-2-p.zabel@pengutronix.de> (raw)
In-Reply-To: <20230111101916.3749538-1-p.zabel@pengutronix.de>
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.zabel@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
next prev parent reply other threads:[~2023-01-11 10:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 10:19 [ptxdist] [PATCH 1/2] host-meson: version bump 0.61.4 -> 1.0.0 Philipp Zabel
2023-01-11 10:19 ` Philipp Zabel [this message]
2023-02-08 11:49 ` [ptxdist] [APPLIED] pre/Rules.make: let Meson generate relocatable .pc files Michael Olbrich
2023-01-11 11:02 ` [ptxdist] [PATCH 1/2] host-meson: version bump 0.61.4 -> 1.0.0 Christian Melki
2023-01-11 11:15 ` Ladislav Michl
2023-01-11 11:20 ` Christian Melki
2023-01-11 11:20 ` Michael Olbrich
2023-01-11 13:14 ` Ladislav Michl
2023-01-11 11:17 ` Michael Olbrich
2023-02-08 11:49 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230111101916.3749538-2-p.zabel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox