Add special gcc options for riscv32/riscv64 gcc calls

git-svn-id: trunk@48929 -
This commit is contained in:
pierre 2021-03-09 23:12:17 +00:00
parent b7fe338bbe
commit 96acda5ac9
2 changed files with 371 additions and 351 deletions

File diff suppressed because it is too large Load Diff

View File

@ -898,10 +898,18 @@ else
ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips mipsel),)
FPCMAKE_CROSSGCCOPT=-mabi=32
else
ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv64),)
FPCMAKE_CROSSGCCOPT=-mabi=lp64
else
ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv32),)
FPCMAKE_CROSSGCCOPT=-mabi=ilp32
else
FPCMAKE_CROSSGCCOPT=-m32
endif
endif
endif
endif
endif
FPCMAKEGCCLIBDIR:=$(shell dirname `gcc $(FPCMAKE_CROSSGCCOPT) -print-libgcc-file-name`)
endif
endif