diff options
Diffstat (limited to 'installer/Makefile')
-rw-r--r-- | installer/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/installer/Makefile b/installer/Makefile index 166f511d24..78c5f26c3a 100644 --- a/installer/Makefile +++ b/installer/Makefile @@ -1031,10 +1031,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 |