Browse Source

powerpc: Fix build errors with xlf

This patch fixes errors when using xlf as fortran compiler on Linux.
Tested with gcc/xlf and clang/xlf compiler combinations.
tags/v0.3.25^2
Rajalakshmi Srinivasaraghavan 2 years ago
parent
commit
a11e1e10f4
3 changed files with 8 additions and 1 deletions
  1. +4
    -0
      Makefile.power
  2. +1
    -1
      Makefile.system
  3. +3
    -0
      f_check

+ 4
- 0
Makefile.power View File

@@ -70,8 +70,12 @@ else
FCOMMON_OPT += -O1 -frecursive -mcpu=power8 -mtune=power8 -fno-fast-math
endif
else
ifeq ($(F_COMPILER), IBM)
FCOMMON_OPT += -O2 -qrecur -qnosave
else
FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -fno-fast-math
endif
endif
else
FCOMMON_OPT += -O2 -Mrecursive
endif


+ 1
- 1
Makefile.system View File

@@ -1168,7 +1168,7 @@ endif
ifeq ($(F_COMPILER), IBM)
CCOMMON_OPT += -DF_INTERFACE_IBM
FEXTRALIB += -lxlf90
ifeq ($(C_COMPILER), GCC)
ifeq ($(C_COMPILER), $(filter $(C_COMPILER),GCC CLANG))
FCOMMON_OPT += -qextname
endif
# FCOMMON_OPT += -qarch=440


+ 3
- 0
f_check View File

@@ -117,6 +117,9 @@ else
vendor=PGI
openmp='-mp'
;;
*xlf*)
vendor=IBM
;;
*)
vendor=G77
openmp=''


Loading…
Cancel
Save