Profile File: make.defaults

In Profile: arch/riscv/rv32imac/ilp32d

Content

# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# RISC-V rv32imac/ilp32d no-multilib profile

CHOST="riscv32-unknown-linux-gnu"

MULTILIB_ABIS="ilp32d"
DEFAULT_ABI="ilp32d"
ABI="ilp32d"

LIBDIR_ilp32d="lib"

CFLAGS="-O2 -pipe -march=rv32imafdc -mabi=ilp32d"
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"