From 84bfa333bb4fa05e37a02a68dfee55d228860e99 Mon Sep 17 00:00:00 2001 From: guilhermesena1 Date: Fri, 23 Sep 2022 00:24:42 +0100 Subject: [PATCH] adding the -lgomp flag check for clang++ compatibility of openmp using autotools --- m4/ax_openmp.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_openmp.m4 b/m4/ax_openmp.m4 index 90d72d9..4712162 100644 --- a/m4/ax_openmp.m4 +++ b/m4/ax_openmp.m4 @@ -79,7 +79,7 @@ ax_cv_[]_AC_LANG_ABBREV[]_openmp=unknown # -xopenmp (Sun), -omp (Tru64), # -qsmp=omp (AIX), # none -ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -lomp -qsmp=omp none" +ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -lomp -lgomp -qsmp=omp none" if test "x$OPENMP_[]_AC_LANG_PREFIX[]FLAGS" != x; then ax_openmp_flags="$OPENMP_[]_AC_LANG_PREFIX[]FLAGS $ax_openmp_flags" fi