Handle special case of gfortran+clang+OpenMP

This commit is contained in:
Martin Kroeker
2018-06-19 20:46:36 +02:00
committed by GitHub
parent 26e1cfb653
commit 1f9e4f3193

View File

@@ -102,7 +102,13 @@ clean ::
rm -f x*
FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
CEXTRALIB =
ifeq ($(USE_OPENMP), 1)
ifeq ($(F_COMPILER), GFORTRAN)
ifeq ($(C_COMPILER), CLANG)
CEXTRALIB = -lomp
endif
endif
endif
# Single real
xscblat1: $(stestl1o) c_sblat1.o $(TOPDIR)/$(LIBNAME)