diff -ru libtool.save/libltdl/m4/libtool.m4 libtool/libltdl/m4/libtool.m4
--- libtool.save/libltdl/m4/libtool.m4	2006-02-09 11:04:01.000000000 -0500
+++ libtool/libltdl/m4/libtool.m4	2006-02-15 10:02:09.885050700 -0500
@@ -3432,6 +3432,16 @@
 	  ;;
 	esac
 	;;
+    cygwin*)
+      case $cc_basename in
+        pgCC*)
+          # Portland Group compilers CPP compiler
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)=''
+         ;;
+      esac
+      ;;
       darwin*)
         # PIC is the default on this platform
         # Common symbols not allowed in MH_DYLIB files
@@ -3738,6 +3748,18 @@
       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
       ;;
 
+    cygwin*)
+      case $cc_basename in
+        pgcc* | pgCC* | pgf77* | pgf90* | pgf95*)
+          # Portland Group compilers (*not* the Pentium gcc compiler,
+	  # which looks to be a dead project)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)=''
+         ;;
+      esac
+      ;;
+
     hpux9* | hpux10* | hpux11*)
       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
@@ -4386,8 +4408,16 @@
       libext=lib
       # Tell ltmain to make .dll files, not .so files.
       shrext_cmds=".dll"
-      # FIXME: Setting linknames here is a bad hack.
-      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+      case $cc_basename in
+        pgcc* | pgCC* | pgf77* | pgf90* | pgf95*)
+          # Portland Group C,CPP, and Fortran compilers
+          _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags -Mmakedll $deplibs'
+          ;;
+        *)
+          # FIXME: Setting linknames here is a bad hack.
+          _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+          ;;
+      esac
       # The linker will automatically build a .lib file if we build a DLL.
       _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
       # FIXME: Should let the user specify the lib program.
