summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-03-12 13:23:41 +0000
committerpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-03-12 13:23:41 +0000
commite7768064128ff589af356b39ae3b987add3e2e2c (patch)
tree10238318dd4ffe6674c2a027d3804d2230a61e47 /Makefile
parent0a62609a78ee3da5ed989e487228af6a3a7f7270 (diff)
downloadfpc-e7768064128ff589af356b39ae3b987add3e2e2c.tar.gz
Update Makefile's after commits 48929/48930
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@48940 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 702277ebfe..eec3486abd 100644
--- a/Makefile
+++ b/Makefile
@@ -1073,10 +1073,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