Skip to content
Permalink
Browse files

Merge pull request #2156 from martin-frbg/issue2154

Add gfortran workaround for C->FORTRAN ABI violation
  • Loading branch information...
martin-frbg committed Jun 6, 2019
2 parents a17cf36 + a0caa76 commit 0ab4076dd8536a7f47b1f047749997fb9c05e80e
Showing with 6 additions and 0 deletions.
  1. +4 −0 Makefile.power
  2. +2 −0 Makefile.system
@@ -29,6 +29,10 @@ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fas
endif
endif

# workaround for C->FORTRAN ABI violation in LAPACKE
ifeq ($(F_COMPILER), GFORTRAN)
FCOMMON_OPT += -fno-optimize-sibling-calls
endif

FLAMEPATH = $(HOME)/flame/lib

@@ -763,6 +763,8 @@ CCOMMON_OPT += -DF_INTERFACE_GFORT
FCOMMON_OPT += -Wall
# make single-threaded LAPACK calls thread-safe #1847
FCOMMON_OPT += -frecursive
# work around ABI problem with passing single-character arguments
FCOMMON_OPT += -fno-optimize-sibling-calls
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
ifneq ($(NO_LAPACK), 1)
EXTRALIB += -lgfortran

0 comments on commit 0ab4076

Please sign in to comment.
You can’t perform that action at this time.