Add linker path to toolchain build

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-12-16 18:46:13 -08:00
parent 8a0ca16bae
commit a0eed98b22
31 changed files with 240 additions and 1 deletions

View File

@@ -50,6 +50,14 @@ CONFIGURE_OPTIONS += \
CFLAGS += -fno-strict-aliasing
# Only for TOOLCHAIN == 1 and BUILD_ARCH == loongarch64
ifeq "$(TOOLCHAIN)" "1"
ifeq "$(BUILD_ARCH)" "loongarch64"
CFLAGS += -Wl,--dynamic-linker=$(TOOLS_DIR)/lib64/ld-linux-loongarch-lp64d.so.1
LDFLAGS += -Wl,--dynamic-linker=$(TOOLS_DIR)/lib64/ld-linux-loongarch-lp64d.so.1
endif
endif
###############################################################################
# Top-level Rules
###############################################################################