]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 [linux] (AC_LIBTOOL_LANG_CXX_CONFIG,
authorJeff Squyres <jsquyres@lam-mpi.org>
Wed, 24 Nov 2004 17:22:03 +0000 (17:22 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 24 Nov 2004 17:22:03 +0000 (17:22 +0000)
AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS),
NEWS, THANKS: Support for Portland Group (aka "pgi") compilers.

ChangeLog
NEWS
THANKS
libtool.m4

index abfb0e50bc95300fd176dab17aa3172bcb109a4e..ad3056b90e468e049b8d30eec5c461594896fcc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-24  Jeff Squyres <jsquyres@lam-mpi.org>
+
+       * libtool.m4 [linux] (AC_LIBTOOL_LANG_CXX_CONFIG,
+       AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS),
+       NEWS, THANKS: Support for Portland Group (aka "pgi") compilers.
+
 2004-11-18  Daniel Reed <djr@redhat.com>
 
        * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret
diff --git a/NEWS b/NEWS
index 11a58d9bceccc3d5355b76e6edb4dec221838add..fb72a94a3d7d297b9e775fbd7d6edfe5a9a82945 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
 New in 1.5.11a: 2004-??-??; CVS version 1.5.11a, Libtool team:
+* Support for Portland Group compiler on Linux.
 * Bug Fixes.
 \f
 New in 1.5.10: 2004-09-19; CVS version 1.5.9a, Libtool team:
diff --git a/THANKS b/THANKS
index 59cd311127e581b8e5b1686b7b1a1858ea1a0770..62397db29c311c7e3b038c43daf6502bb6dbb423 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -27,6 +27,7 @@ Eric Estievenart                eric@via.ecp.fr
 Frank Ch. Eigler                fche@cygnus.com
 H.J. Lu                         hjl@gnu.org
 Ian Lance Taylor                ian@cygnus.com
+Jeff Squyres                    jsquyres@lam-mpi.org
 Joel N. Weber II                devnull@gnu.org
 Joseph Beckenbach III           jrb3@best.com
 Kenneth Albanowski              kjahds@kjahds.com
index 4bcd29411bb64da8d7381b7d6b9da4dddff327fd..ca90c17fcbd04742b1efcad50ad1f2323e41e720 100644 (file)
@@ -3165,6 +3165,14 @@ case $host_os in
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
        ;;
+      pgCC)
+        # Portland Group C++ compiler
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+        ;;
       cxx)
        # Compaq C++
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -4713,6 +4721,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
+         pgCC)
+           # Portland Group C++ compiler.
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+           ;;
          cxx)
            # Compaq C++
            # Make sure the PIC flag is empty.  It appears that all Alpha
@@ -4952,6 +4966,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
         ;;
+      pgcc | pgf77 | pgf90)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+       # which looks to be a dead project)
+       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+        ;;
       ccc*)
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
         # All Alpha code is PIC.
@@ -5228,6 +5249,10 @@ EOF
   linux*)
     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+       # Portland Group f77 and f90 compilers require an additonal -fpic
+       if test "$CC" = "pgf77" -o "$CC" = "pgf90"; then
+          tmp_archive_cmds="$tmp_archive_cmds -fpic"
+        fi
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
       supports_anon_versioning=no
       case `$LD -v 2>/dev/null` in