In Profile: arch/riscv/rv32imac/ilp32
# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# RISC-V rv32imac/ilp32 no-multilib profile
CHOST="riscv32-unknown-linux-gnu"
MULTILIB_ABIS="ilp32"
DEFAULT_ABI="ilp32"
ABI="ilp32"
LIBDIR_ilp32="lib"
CFLAGS="-O2 -pipe -march=rv32imac -mabi=ilp32"
CXXFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
FCFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--no-keep-memory"
## Mike Gilbert <floppym@gentoo.org> (2021-12-17)
## Prevent automagic use of 64-bit time_t.
## https://bugs.gentoo.org/828001
#
# Andreas K. Hüttel <dilfridge@gentoo.org> (2023-10-10)
# We need to undo this for riscv32 since it only has the 64bit interface
#
enable_year2038="yes"
# James Le Cuirot <chewi@gentoo.org> (2026-02-13)
# Enable the native QEMU target for this architecture by default.
QEMU_SOFTMMU_TARGETS="riscv32"