Re: Oracle Solaris Studio 12.2 compiler incompatibility with libtool

2010-11-18 Thread Ralf Wildenhues
* Terry Dontje wrote on Wed, Nov 17, 2010 at 01:00:26PM CET:
 On 11/16/2010 02:01 PM, Terry Dontje wrote:
 On 11/16/2010 01:56 PM, Ralf Wildenhues wrote:
 Thanks.  Now the only remaining question is whether we still need to
 support that thing called 'Sun Ceres Fortran' here:
 http://www.open-mpi.org/community/lists/devel/2008/11/4932.php
 and if yes, whether that also supported '-Qoption ld' already, despite
 a hint to the contrary in that reference.
 
 Any chance one of you might know/remember this?
 Like a bad recurring nightmare :-).
 
 Note the f90 2009 compiler is the 8.4 where Ceres was 8.3.  So from 8.4 on
 -Qoption is supported.  I think we probably would want to still support
 Ceres but let me ask around.
 
 I've discussed this internally and yes we would like Ceres to be supported.
 
 Sorry,

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.  :-)

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.

Thanks,
Ralf

2010-11-18  Ralf Wildenhues  ralf.wildenh...@gmx.de

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 21 | 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'



Re: [patch] allow --with-pic to accept package names

2010-11-18 Thread Ollie Wild
On Wed, Nov 10, 2010 at 1:41 PM, Ralf Wildenhues ralf.wildenh...@gmx.de wrote:

 I'm pushing the patch with the diff below squashed in, hope you
 don't mind.

Ralf, being as you're a dual libtool / GCC maintainer, what is the
process for getting libtool changes pushed to GCC?  Do I just wait for
a new libtool release, or is it reasonable / preferred to send
individual patches to GCC as well?

Thanks,
Ollie