Skip to content

Commit 75acf96

Browse files
committed
Refs #329 #287. Only disable -fopenmp for LAPACK Fortran codes on Windows.
1 parent 8c7687b commit 75acf96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile.system

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,14 @@ override FPFLAGS += $(COMMON_OPT) $(FCOMMON_OPT) $(COMMON_PROF)
872872
#MAKEOVERRIDES =
873873

874874
#For LAPACK Fortran codes.
875+
#Disable -fopenmp for LAPACK Fortran codes on Windows.
876+
ifdef OS_WINDOWS
875877
LAPACK_FFLAGS := $(filter-out -fopenmp -mp -openmp -xopenmp=parallel,$(FFLAGS))
876878
LAPACK_FPFLAGS := $(filter-out -fopenmp -mp -openmp -xopenmp=parallel,$(FPFLAGS))
879+
else
880+
LAPACK_FFLAGS := $(FFLAGS)
881+
LAPACK_FPFLAGS := $(FPFLAGS)
882+
endif
877883

878884
LAPACK_CFLAGS = $(CFLAGS)
879885
LAPACK_CFLAGS += -DHAVE_LAPACK_CONFIG_H

0 commit comments

Comments
 (0)