From 1dc8183b98826b5d1107cee6ec4583d7029aac14 Mon Sep 17 00:00:00 2001 From: Casey Connolly Date: Fri, 30 May 2025 13:16:08 +0200 Subject: [PATCH] build: init: only pull in g++-cross if g++ in depends Signed-off-by: Casey Connolly --- pmb/build/init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmb/build/init.py b/pmb/build/init.py index 623b28a1..4dfaa0e6 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -122,7 +122,9 @@ def init_compiler(context: Context, depends: list[str], cross: CrossCompile, arc elif "gcc6" in depends: cross_pkgs += ["gcc6-" + arch_str] elif arch != Arch.native(): - cross_pkgs += ["gcc-" + arch_str, "g++-" + arch_str] + cross_pkgs += ["gcc-" + arch_str] + if "g++" in depends: + cross_pkgs += ["g++-" + arch_str] if "clang" in depends or "clang-dev" in depends: cross_pkgs += ["clang"] if cross == CrossCompile.CROSSDIRECT: