]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Adjust build rule for gen-riscv-ext-opt and gen-riscv-ext-texi
authorKito Cheng <kito.cheng@sifive.com>
Wed, 28 May 2025 09:59:11 +0000 (17:59 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 2 Jun 2025 06:47:30 +0000 (14:47 +0800)
commitb0dc2324980bbb600ab178dacfe5455365a52645
tree87b449dadbb64af803da2fdf888147cfbb8f390d
parent3f1f99ef82a65d66e3aaa429bf4fb746b93da0db
RISC-V: Adjust build rule for gen-riscv-ext-opt and gen-riscv-ext-texi

Separate the build rules to compile and link stage to make sure
BUILD_LINKERFLAGS and BUILD_LDFLAGS are applied correctly.

We hit this issue when we try to build GCC with non-system-default g++,
and it use newer libstdc++, and then got error from using older libstdc++ from
system, that should not happened if we link with -static-libgcc and
-static-libstdc++.

gcc/ChangeLog:

* config/riscv/t-riscv: Adjust build rule for gen-riscv-ext-opt
and gen-riscv-ext-texi.
gcc/config/riscv/t-riscv