Handle special case of gfortran+clang+OpenMP
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 19 Jun 2018 18:47:33 +0000 (20:47 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Jun 2018 18:47:33 +0000 (20:47 +0200)
test/Makefile

index 65fb6f4..074411b 100644 (file)
@@ -122,8 +122,13 @@ endif
 
 
 FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
-CEXTRALIB =
-
+ifeq ($(USE_OPENMP), 1)
+ifeq ($(F_COMPILER), GFORTRAN)
+ifeq ($(C_COMPILER), CLANG)
+CEXTRALIB = -lomp
+endif
+endif
+endif
 
 sblat1 : sblat1.$(SUFFIX) ../$(LIBNAME)
        $(FC) $(FLDFLAGS) -o sblat1 sblat1.$(SUFFIX) ../$(LIBNAME) $(EXTRALIB) $(CEXTRALIB)