mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
binutils+gcc: Fix that the toolchain compiler is trying to link against host libraries
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>
This commit is contained in:
committed by
Peter Müller
parent
173a4d546d
commit
e111b836b3
@@ -59,7 +59,8 @@ ifeq "$(PASS)" "1"
|
||||
--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
|
||||
@@ -69,10 +70,10 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user