Skip to content

Commit 7d3502b

Browse files
committed
Add -frecursive gfortran option by default
1 parent 066f806 commit 7d3502b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile.rule

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ NO_AFFINITY = 1
192192
# Flags for POWER8 are defined in Makefile.power. Don't modify COMMON_OPT
193193
# COMMON_OPT = -O2
194194

195-
# gfortran option for LAPACK
196-
# enable this flag only on 64bit Linux and if you need a thread safe lapack library
195+
# gfortran option for LAPACK to improve thread-safety
196+
# It is enabled by default in Makefile.system for gfortran
197197
# Flags for POWER8 are defined in Makefile.power. Don't modify FCOMMON_OPT
198198
# FCOMMON_OPT = -frecursive
199199

Makefile.system

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ endif
718718
ifeq ($(F_COMPILER), GFORTRAN)
719719
CCOMMON_OPT += -DF_INTERFACE_GFORT
720720
FCOMMON_OPT += -Wall
721+
# make single-threaded LAPACK calls thread-safe #1847
722+
FCOMMON_OPT += -frecursive
721723
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
722724
ifneq ($(NO_LAPACK), 1)
723725
EXTRALIB += -lgfortran

0 commit comments

Comments
 (0)