diff options
Diffstat (limited to 'rtl/openbsd/Makefile')
-rw-r--r-- | rtl/openbsd/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rtl/openbsd/Makefile b/rtl/openbsd/Makefile index 20f26e26e4..ff9a8e5bf5 100644 --- a/rtl/openbsd/Makefile +++ b/rtl/openbsd/Makefile @@ -2521,10 +2521,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 |