From: Michael Tremer Date: Thu, 5 Aug 2021 13:48:48 +0000 (+0000) Subject: gcc: toolchain stage 2: Set sysroot to /tools_${arch} X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9682e4437d366ff564faafe3c162b5884f3d3d65;p=people%2Fms%2Fipfire-2.x.git gcc: toolchain stage 2: Set sysroot to /tools_${arch} The stage 2 compiler was looking for libraries outside the bootstrapped toolchain environment which causes that linked programs cannot be executied because the runtime linker only looks for libraries inside the toolchain environment. Signed-off-by: Michael Tremer --- diff --git a/lfs/gcc b/lfs/gcc index ade02dcda1..96e58ddae2 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -116,6 +116,7 @@ ifeq "$(PASS)" "2" EXTRA_CONFIG = \ --build=$(BUILDTARGET) \ --prefix=$(TOOLS_DIR) \ + --with-sysroot=$(ROOT) \ --with-local-prefix=$(TOOLS_DIR) \ --with-native-system-header-dir=$(TOOLS_DIR)/include \ --enable-languages=c,c++ \