Skip to content
Permalink
Browse files

Add gfortran workaround for potential ABI violation

for #2154
  • Loading branch information...
martin-frbg committed Jun 8, 2019
1 parent ff1bfe7 commit 6ca898b63b81325559cbd2e925bf245f2a8ac999
Showing with 3 additions and 0 deletions.
  1. +3 −0 cmake/fc.cmake
@@ -44,7 +44,10 @@ endif ()

if (${F_COMPILER} STREQUAL "GFORTRAN")
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_GFORT")
# ensure reentrancy of lapack codes
set(FCOMMON_OPT "${FCOMMON_OPT} -Wall -frecursive")
# work around ABI violation in passing string arguments from C
set(FCOMMON_OPT "$(FCOMMON_OPT) -fno-optimize-sibling-calls")
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
if (NOT NO_LAPACK)
set(EXTRALIB "{EXTRALIB} -lgfortran")

0 comments on commit 6ca898b

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