Skip to content

Commit 1ba14ee

Browse files
authored
Merge pull request #297 from ChengJin01/jdk11_riscv_part4_installed_cross_compiler
Add support to the installed cross-compiler for RISCV
2 parents cc6eef2 + cf0fd8b commit 1ba14ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: closed/autoconf/custom-spec.gmk.in

+5
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ endif
138138
ifeq (riscv64,$(OPENJDK_TARGET_CPU))
139139
ifeq (cross,$(COMPILE_TYPE))
140140
export SYSROOT_CFLAGS
141+
# Change the prefix of the cross toolchain if the corresponding
142+
# software package is installed on the host system.
143+
ifeq (install,$(RISCV_TOOLCHAIN_TYPE))
144+
export RISCV_CROSSTOOLS_PREFIX := riscv64-linux-gnu
145+
endif
141146
else
142147
JAVA_FLAGS += -DserverStartupTimeout=36000
143148
endif

0 commit comments

Comments
 (0)