bug-libtool
[Top][All Lists]
Advanced

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

Re: Oracle Solaris Studio 12.2 compiler incompatibility with libtool


From: Ralf Wildenhues
Subject: Re: Oracle Solaris Studio 12.2 compiler incompatibility with libtool
Date: Sun, 5 Dec 2010 22:25:05 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Ralf Wildenhues wrote on Thu, Nov 18, 2010 at 09:23:17PM CET:
> * Terry Dontje wrote on Wed, Nov 17, 2010 at 01:00:26PM CET:
> > I've discussed this internally and yes we would like Ceres to be supported.

> Oh, no problem.  Presumably that means you have some way to test the
> proposed patch then with all the interesting compilers.  That would be
> very nice.  :-)

Erm, I haven't pushed this patch yet, assuming that some test feedback
would be better than none at all.  Any chance you could try it out
sometime?

Thanks,
Ralf

> Here it goes; it works with this (yes, very old) Sun Studio X.X on
> GNU/Linux installation; and yes, this is about GNU/Linux only.

> 2010-11-18  Ralf Wildenhues  <...
> 
>       Fix $wl setting for Solaris Studio 12.2 f90 on GNU/Linux.
>       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]
>       <lt_prog_compiler_wl>: Set to '-Qoption ld ' if we
>       detect Sun Fortran version 8.4 or newer.
>       Report by Terry Dontje.
> 
> diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
> index 419ffe1..4a371c9 100644
> --- a/libltdl/m4/libtool.m4
> +++ b/libltdl/m4/libtool.m4
> @@ -4324,12 +4324,17 @@ m4_if([$1], [CXX], [
>       ;;
>        *)
>       case `$CC -V 2>&1 | sed 5q` in
> -     *Sun\ F* | *Sun*Fortran*)
> +     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 
> 8.[[0-3]]*)
>         # Sun Fortran 8.3 passes all unrecognized flags to the linker
>         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
>         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
>         _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
>         ;;
> +     *Sun\ F* | *Sun*Fortran*)
> +       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
> +       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
> +       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
> +       ;;
>       *Sun\ C*)
>         # Sun C 5.9
>         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'



reply via email to

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