Skip to content

Commit cf0fd8b

Browse files
author
Cheng Jin
committed
Add support to the installed cross-compiler for RISCV
The change is to ensure the installed cross-compiler is correctly set up on the host system from OpenJDK11 perspective by changing the prefix of the cross-toolchain if users prefer the installed cross-compiler rather than building a cross-compiler from the source. Issue: ibmruntimes#218 Signed-off-by: Cheng Jin <[email protected]>
1 parent cc6eef2 commit cf0fd8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)