diff options
Diffstat (limited to 'packages/paszlib/Makefile')
-rw-r--r-- | packages/paszlib/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/paszlib/Makefile b/packages/paszlib/Makefile index 434ab3ed42..30df0dc4ce 100644 --- a/packages/paszlib/Makefile +++ b/packages/paszlib/Makefile @@ -631,10 +631,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 |