aboutsummaryrefslogtreecommitdiff
blob: 0d7882070096310a325b7f13f9177ef2cdeabb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# RISC-V profile for rv64gc multilib

CFLAGS="-O2 -pipe -march=rv64gc"
CXXFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
FCFLAGS="${CFLAGS}"

# Multilib ABIs
MULTILIB_ABIS="lp64d lp64"
DEFAULT_ABI="lp64d"
ABI="lp64d"

# Library directories
LIBDIR_lp64d="lib64/lp64d"
LIBDIR_lp64="lib64/lp64"
SYMLINK_LIB="no"

# Flags for lp64d
CFLAGS_lp64d="-mabi=lp64d"
# LDFLAGS_lp64d
# CHOST_lp64d

# Flags for lp64
CFLAGS_lp64="-mabi=lp64"
# LDFLAGS_lp64
# CHOST_lp64

# Enable lp64d by default
ABI_RISCV="lp64d"

# Unhide the riscv/rv64gc-specific USE_EXPANDs
USE_EXPAND_HIDDEN="-ABI_RISCV"

# Implicitly enable lp64d in ebuilds without multilib support
IUSE_IMPLICIT="abi_riscv_lp64d"

# Enable Python 3.7 (and potentially later versions) only
PYTHON_TARGETS="python3_7"
PYTHON_SINGLE_TARGET="python3_7"