libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ltmain.in: Pass through -fopenmp=*


From: Ileana Dumitrescu
Subject: Re: [PATCH] ltmain.in: Pass through -fopenmp=*
Date: Mon, 25 Mar 2024 21:31:24 +0200
User-agent: Mozilla Thunderbird

Thank you! This patch has been merged in.

On 24/03/2024 10:26, Sam James wrote:
Clang uses -fopenmp=* to allow choosing between libgomp and libomp.

* build-aux/ltmain.in: Pass through -fopenmp=*.

Signed-off-by: Sam James <sam@gentoo.org>
---
  build-aux/ltmain.in | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index af4970be..6c8e90df 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"

--
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

Attachment: OpenPGP_0x6570EA01146F7354.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]