libtool
[Top][All Lists]
Advanced

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

Re: flang compiler and wrappers


From: Shterenlikht, Anton
Subject: Re: flang compiler and wrappers
Date: Wed, 3 Jul 2024 14:41:43 +0000


> On 3 Jul 2024, at 15:17, Ileana Dumitrescu <ileanadumitrescu95@gmail.com> 
> wrote:
> 
> Hi Anton,
> 
> On 03/07/2024 16:40, Shterenlikht, Anton wrote:
>> Hello Ileana
>> It seems your original patch is good,
> 
> To make sure I understand, is the original patch that worked
> for you the one applied here:
> https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=master&id=33d4b69fccbbb557c1160cc46c3d8d2f30fb8a2d
> 
> Or is it the one below:
> 
> --- a/m4/libtool.m4
> +++ b/m4/libtool.m4
> @@@ -4805,7 -4805,7 +4805,7 @@@ m4_if([$1], [CXX],
>        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
>        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
>          ;;
> --      *flang)
> ++      *flang* | ftn*)
>          # Flang compiler.
>        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
>        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'

The latter one, the patch you have originally provided in
https://lists.gnu.org/archive/html/libtool/2024-06/msg00017.html

However, as I mentioned upthread, using the master branch,
I see different line numbers:


ashterenli@NB-068 libtool % git branch                
  development
  libtool-next
* master

ashterenli@NB-068 libtool % git rev-parse --short HEAD
cc511550

ashterenli@NB-068 libtool % git diff
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index bbf2d21f..7039747b 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4706,7 +4706,7 @@ m4_if([$1], [CXX], [
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
         ;;
-      *flang)
+      *flang* | ftn*)
         # Flang compiler.
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'



Thank you

Anton





reply via email to

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