]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Clang uses -fopenmp=* to allow choosing between libgomp and libomp.
authorSam James <sam@gentoo.org>
Mon, 25 Mar 2024 18:32:30 +0000 (20:32 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 25 Mar 2024 18:32:30 +0000 (20:32 +0200)
* build-aux/ltmain.in: Pass through -fopenmp=*.

build-aux/ltmain.in

index 7e4b821162ef5971477c48785d028497d1e066cf..c1d28856c7f4330f7a57c78a84db97f8b875af79 100644 (file)
@@ -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"