From c9b9973cae634c1d3ea2f5f5b79ee5a6f1f8d5c1 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 10 May 2020 10:30:10 +0200 Subject: cross-gcc: add sysroot for search paths $build_tooldir is used for various search paths, so it must include the sysroot. Otherwise, xgcc will search in /opt/. The search paths will either not exist, or contain a different version of the toolchain. Signed-off-by: Michael Olbrich --- rules/cross-gcc.make | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make index aef730c..c4ef5fa 100644 --- a/rules/cross-gcc.make +++ b/rules/cross-gcc.make @@ -145,6 +145,14 @@ $(STATEDIR)/cross-gcc.prepare: $(CROSS_GCC_BUILDDIR)/Makefile @$(call touch) +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +CROSS_GCC_MAKE_OPT := \ + build_tooldir=$(PTXDIST_SYSROOT_CROSS)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET) \ + all + # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- -- cgit v1.2.3