From 7e2c6eb8b6c4d9fb6d1de071a4b14adb8db1134b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 15 Dec 2022 18:52:46 +0100 Subject: [PATCH] Fix INTERFACE64 builds on riscv and loongarch --- Makefile.system | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Makefile.system b/Makefile.system index 3c29ab3f3..a24c2ec39 100644 --- a/Makefile.system +++ b/Makefile.system @@ -827,13 +827,32 @@ endif ifeq ($(ARCH), riscv64) NO_BINARY_MODE = 1 BINARY_DEFINED = 1 +ifdef INTERFACE64 +ifneq ($(INTERFACE64), 0) +ifeq ($(F_COMPILER), GFORTRAN) +FCOMMON_OPT += -fdefault-integer-8 +endif +ifeq ($(F_COMPILER), FLANG) +FCOMMON_OPT += -i8 +endif +endif +endif endif ifeq ($(ARCH), loongarch64) NO_BINARY_MODE = 1 BINARY_DEFINED = 1 +ifdef INTERFACE64 +ifneq ($(INTERFACE64), 0) +ifeq ($(F_COMPILER), GFORTRAN) +FCOMMON_OPT += -fdefault-integer-8 +endif +ifeq ($(F_COMPILER), FLANG) +FCOMMON_OPT += -i8 +endif +endif +endif endif - # # C Compiler dependent settings