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 <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-02-04 16:47:21 +00:00
committed by Peter Müller
parent f31be321f5
commit 7c6bf38c05

View File

@@ -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++ \