Binutils and GCC were misconfigured and used host libraries to build
toolchain programs. That resulted in that those programs were correctly
linked, but could not be executed, because the runtime linker did not
search in the host system.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
--target=$(CROSSTARGET) \
--prefix=$(TOOLS_DIR) \
--with-sysroot=$(ROOT) \
- --with-lib-path=$(TOOLS_DIR)/lib
+ --with-lib-path=$(TOOLS_DIR)/lib \
+ --disable-nls
EXTRA_MAKE =
EXTRA_INSTALL =
else
AR="$(CROSSTARGET)-ar" \
RANLIB="$(CROSSTARGET)-ranlib"
EXTRA_CONFIG = \
- --host=$(BUILDTARGET) \
- --build=$(BUILDTARGET) \
--prefix=$(TOOLS_DIR) \
- --with-lib-path=$(TOOLS_DIR)/lib
+ --with-lib-path=$(TOOLS_DIR)/lib \
+ --with-sysroot \
+ --disable-nls
EXTRA_MAKE =
EXTRA_INSTALL =
endif
--with-sysroot=$(ROOT) \
--with-local-prefix=$(TOOLS_DIR) \
--with-native-system-header-dir=$(TOOLS_DIR)/include \
+ --with-glibc-version=2.11 \
--disable-nls \
--disable-shared \
+ --disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
AR="$(CROSSTARGET)-ar" \
RANLIB="$(CROSSTARGET)-ranlib"
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++ \
--disable-libstdcxx-pch \
+ --disable-multilib \
--disable-libgomp
EXTRA_MAKE =
EXTRA_INSTALL =