]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix $wl setting for Solaris Studio 12.2 f90 on GNU/Linux.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 9 Jan 2011 16:55:17 +0000 (17:55 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 9 Jan 2011 16:55:45 +0000 (17:55 +0100)
* 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.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index bcbc44842c33cbf92c246ac3bac179a705f8f09f..186ccc3fd17d290726b0eab4ed93fd2004b70192 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@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.
+
 2011-01-07  Peter Rosin  <peda@lysator.liu.se>
 
        Convert file name to toolchain format when blessing archives.
index c14475504895d486350a922b157992419c54e0ea..fd79dcfc00bb8af62add623530e2188b52312830 100644 (file)
@@ -4363,12 +4363,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'