aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Moreira Zinsly <rzinsly@ventanamicro.com>2023-08-22 11:37:04 -0600
committerJeff Law <jlaw@ventanamicro.com>2023-08-22 11:37:04 -0600
commit47f95bc4be4eb14730ab3eaaaf8f6e71fda47690 (patch)
treeb6582c01d205f63f121739b385a6c041a84e3f42
parent0698c9fddfc5a41dd7f233928b7a486cb044fea3 (diff)
downloadgcc-47f95bc4be4eb14730ab3eaaaf8f6e71fda47690.zip
gcc-47f95bc4be4eb14730ab3eaaaf8f6e71fda47690.tar.gz
gcc-47f95bc4be4eb14730ab3eaaaf8f6e71fda47690.tar.bz2
RISC-V: Add multiarch support on riscv-linux-gnu
This adds multiarch support to the RISC-V port so that bootstraps work with Debian out-of-the-box. Without this patch the stage1 compiler is unable to find headers/libraries when building the stage1 runtime. This is functionally (and possibly textually) equivalent to Debian's fix for the same problem. gcc/ * config/riscv/t-linux: Add MULTIARCH_DIRNAME.
-rw-r--r--gcc/config/riscv/t-linux2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/riscv/t-linux b/gcc/config/riscv/t-linux
index 216d277..a6f64f8 100644
--- a/gcc/config/riscv/t-linux
+++ b/gcc/config/riscv/t-linux
@@ -1,3 +1,5 @@
# Only XLEN and ABI affect Linux multilib dir names, e.g. /lib32/ilp32d/
MULTILIB_DIRNAMES := $(patsubst rv32%,lib32,$(patsubst rv64%,lib64,$(MULTILIB_DIRNAMES)))
MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES))
+
+MULTIARCH_DIRNAME := $(call if_multiarch,$(firstword $(subst -, ,$(target)))-linux-gnu)