Tentative changes for building on AIX
@@ -36,6 +36,9 @@ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OP
else
COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math
FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
+ifeq ($(OSNAME), AIX)
+FCOMMON_OPT += -O1 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
+endif
endif
endif
@@ -78,6 +81,9 @@ CCOMMON_OPT += -mpowerpc64 -maix64
ifeq ($(COMPILER_F77), g77)
FCOMMON_OPT += -mpowerpc64 -maix64
endif
+ifeq ($(F_COMPILER), GFORTRAN)
+FCOMMON_OPT += -mpowerpc64 -maix64
+endif
ifeq ($(COMPILER_F77), xlf)
FCOMMON_OPT += -q64
endif
