PKGNAME=gcc+cross-riscv64
PKGSEC=devel
PKGDEP="binutils+cross-riscv64"

__CROSS="riscv64"
# FIXME: (loongson3) Relocation truncated to fit.
#
# Seems simply too large to handle even with LTO disabled. Fail for now.
FAIL_ARCH="@(${__CROSS}|loongson3)"

PKGDES="GNU Compiler Collection (cross compiler for RISC-V 64-bit GNU/Linux targets)"

NOSTATIC=0

# Note: Sync from core-devel/gcc.
TARGET_OPTIONS="""
   --with-arch=rv64gc
   --with-abi=lp64d
   --with-isa-spec=2.2
"""
