From cfb95c8a5baee15642cbe26a4eca3bdc28e7ac0d Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Tue, 21 Jan 2025 06:38:03 +0000 Subject: [PATCH] sys-apps/pandora_box: Enable optional static linking Signed-off-by: Patrick Lauer --- ...ra_box-0.12.0.ebuild => pandora_box-0.12.0-r1.ebuild} | 9 +++++++++ 1 file changed, 9 insertions(+) rename sys-apps/pandora_box/{pandora_box-0.12.0.ebuild => pandora_box-0.12.0-r1.ebuild} (94%) diff --git a/sys-apps/pandora_box/pandora_box-0.12.0.ebuild b/sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild similarity index 94% rename from sys-apps/pandora_box/pandora_box-0.12.0.ebuild rename to sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild index ad0137ee8c7a9..75c2362b73f32 100644 --- a/sys-apps/pandora_box/pandora_box-0.12.0.ebuild +++ b/sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild @@ -7,6 +7,8 @@ EAPI=8 SYDVER=3.30.0 +IUSE="static" + CRATES=" ahash@0.8.11 argv@0.1.11 @@ -123,3 +125,10 @@ SLOT="0" KEYWORDS="~amd64" S=${WORKDIR}/syd-v${SYDVER}/pandora + +src_configure() { + if use static; then + export RUSTFLAGS+="-Ctarget-feature=+crt-static" + fi + cargo_src_configure +}