./configure --host=riscv64-unknown-elf CC=riscv64-unknown-elf-gcc CXX=riscv64-unknown-elf-g++ CFLAGS='-Os -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s' CXXFLAGS='-Os -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s'
- change
CMAKE_C_COMPILER
toriscv-unknown-elf-gcc
- change
CMAKE_SYSTEM_NAME
toGeneric
cmake