Skip to content

Commit 25d0171

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 25d0171

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

closed/autoconf/custom-spec.gmk.in

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

0 commit comments

Comments
 (0)