mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
Add linker path to toolchain build
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -480,7 +480,7 @@ define INSTALL_INITSCRIPTS
|
||||
done
|
||||
endef
|
||||
|
||||
ifeq "$(BUILD_ARCH)" "$(filter $(BUILD_ARCH),aarch64 riscv64)"
|
||||
ifeq "$(BUILD_ARCH)" "$(filter $(BUILD_ARCH),aarch64 riscv64 loongarch64)"
|
||||
define UPDATE_AUTOMAKE
|
||||
for i in $$(find $(DIR_APP) -name config.guess -o -name config.sub); do \
|
||||
cp -vf /usr/share/automake*/$$(basename $${i}) $${i} || \
|
||||
|
||||
@@ -40,6 +40,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/bash
8
lfs/bash
@@ -45,6 +45,14 @@ endif
|
||||
CONFIGURE_OPTIONS += \
|
||||
--without-bash-malloc
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -37,6 +37,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -32,6 +32,14 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -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
|
||||
###############################################################################
|
||||
|
||||
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -32,6 +32,14 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -30,6 +30,14 @@ THISAPP = fake-environ
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -42,6 +42,14 @@ else
|
||||
EXTRA_CONFIG = --prefix=$(TOOLS_DIR) --disable-nls --build=$(BUILDTARGET)
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
7
lfs/flex
7
lfs/flex
@@ -43,6 +43,13 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
|
||||
8
lfs/gawk
8
lfs/gawk
@@ -41,6 +41,14 @@ else
|
||||
EXTRA_CONFIG = --prefix=$(TOOLS_DIR) --disable-nls
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -48,6 +48,14 @@ else
|
||||
--build=$(BUILDTARGET)
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -74,6 +74,14 @@ ifeq "$(BUILD_ARCH)" "aarch64"
|
||||
EXTRA_CONFIG += --enable-memory-tagging
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/grep
8
lfs/grep
@@ -42,6 +42,14 @@ else
|
||||
--disable-perl-regexp --without-included-regex
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/gzip
8
lfs/gzip
@@ -41,6 +41,14 @@ else
|
||||
EXTRA_CONFIG = --prefix=$(TOOLS_DIR)
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/m4
8
lfs/m4
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/make
8
lfs/make
@@ -51,6 +51,14 @@ ifeq "$(PASS)" "1"
|
||||
CFLAGS =
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -51,6 +51,14 @@ EXTRA_CONFIG += \
|
||||
--mandir=/usr/share/man \
|
||||
--with-pkg-config-libdir=/usr/lib/pkgconfig
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/perl
8
lfs/perl
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
|
||||
# Perl does not build with -j larger than 23
|
||||
MAX_PARALLELISM = 23
|
||||
|
||||
|
||||
@@ -40,6 +40,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -55,6 +55,14 @@ else
|
||||
--without-ensurepip
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/sed
8
lfs/sed
@@ -45,6 +45,14 @@ else
|
||||
EXTRA_INSTALL =
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/tar
8
lfs/tar
@@ -42,6 +42,14 @@ else
|
||||
EXTRA_CONFIG = --prefix=$(TOOLS_DIR) --disable-nls
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/tcl
8
lfs/tcl
@@ -37,6 +37,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
@@ -39,6 +39,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/xz
8
lfs/xz
@@ -37,6 +37,14 @@ else
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/zlib
8
lfs/zlib
@@ -40,6 +40,14 @@ endif
|
||||
|
||||
CFLAGS += -fPIC -DPIC
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
8
lfs/zstd
8
lfs/zstd
@@ -41,6 +41,14 @@ else
|
||||
CC = gcc
|
||||
endif
|
||||
|
||||
# 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
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user