From: Sam James Date: Mon, 25 Mar 2024 18:32:30 +0000 (+0200) Subject: Clang uses -fopenmp=* to allow choosing between libgomp and libomp. X-Git-Tag: v2.5.0~15 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=888bd7ad44fce8a2d4e9bc720c8bb8234bc10df4;p=thirdparty%2Flibtool.git Clang uses -fopenmp=* to allow choosing between libgomp and libomp. * build-aux/ltmain.in: Pass through -fopenmp=*. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 7e4b82116..c1d28856c 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5198,7 +5198,7 @@ func_mode_link () continue ;; -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" @@ -5755,7 +5755,7 @@ func_mode_link () found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs"