diff --git a/Makefile.system b/Makefile.system index cb19dea73c..1b84195e45 100644 --- a/Makefile.system +++ b/Makefile.system @@ -608,6 +608,9 @@ endif ifeq ($(C_COMPILER), CLANG) CCOMMON_OPT += -fopenmp +ifeq ($(F_COMPILER), GFORTRAN) +FEXTRALIB := $(subst -lgomp,-lomp,$(FEXTRALIB)) +endif endif ifeq ($(C_COMPILER), INTEL) diff --git a/f_check b/f_check index 31f4376d0d..dac34edeec 100755 --- a/f_check +++ b/f_check @@ -373,13 +373,6 @@ if [ -n "$link" ]; then ;; esac - case "$flag" in *-lgomp*) - case "$CC" in *clang*) - flag="-lomp" - ;; - esac - esac - case "$flag" in -l*) case "$flag" in *ibrary*|*gfortranbegin*|*flangmain*|*frtbegin*|*pathfstart*|\