From e7768064128ff589af356b39ae3b987add3e2e2c Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 12 Mar 2021 13:23:41 +0000 Subject: Update Makefile's after commits 48929/48930 git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@48940 3ad0048d-3df7-0310-abae-a5850022a9f2 --- packages/odbc/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packages/odbc/Makefile') diff --git a/packages/odbc/Makefile b/packages/odbc/Makefile index 965878fade..e1d4b0ee26 100644 --- a/packages/odbc/Makefile +++ b/packages/odbc/Makefile @@ -607,10 +607,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 -- cgit v1.2.1