PGI compilers have an option to create an import library on windows. The libtool default on windows (without any patches) is to create a link to the dll for the .lib file. This obviously doesn't work. I am not sure what the side-effects of the following patch is so I'm submitting it here for comments. Is there ever a time that the lib file will exist and libtool should remove it before creating the link?
Chris
Index: libltdl/config/ltmain.m4sh =================================================================== RCS file: /sources/libtool/libtool/libltdl/config/ltmain.m4sh,v retrieving revision 1.56 diff -u -r1.56 ltmain.m4sh --- libltdl/config/ltmain.m4sh 22 Oct 2006 14:10:33 -0000 1.56 +++ libltdl/config/ltmain.m4sh 2 Jan 2007 20:12:42 -0000 @@ -5402,7 +5402,7 @@ # Create links to the real library. for linkname in $linknames; do - if test "$realname" != "$linkname"; then + if test "$realname" != "$linkname" -a ! -e "$output_objdir/$linkname";then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done