Skip to content

Commit 47f95bc

Browse files
rzinslyJeffreyALaw
authored andcommitted
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.
1 parent 0698c9f commit 47f95bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcc/config/riscv/t-linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Only XLEN and ABI affect Linux multilib dir names, e.g. /lib32/ilp32d/
22
MULTILIB_DIRNAMES := $(patsubst rv32%,lib32,$(patsubst rv64%,lib64,$(MULTILIB_DIRNAMES)))
33
MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES))
4+
5+
MULTIARCH_DIRNAME := $(call if_multiarch,$(firstword $(subst -, ,$(target)))-linux-gnu)

0 commit comments

Comments
 (0)