develooper Front page | perl.perl5.porters | Postings from October 2003

[PATCH] ExtUtils::Liblist/ doesn't see import libraries on Cygwin

Gerrit P. Haase
October 11, 2003 05:06
[PATCH] ExtUtils::Liblist/ doesn't see import libraries on Cygwin
Message ID:
Hallo Michael,

Cygwin needs this change in Liblist/ because there are several
import libraries installed without having a static library besides and
these are not recognized by

Former pratice was to name the import libraries like the static libs,
or to have both, now this was switched and all import libraries
(besides w32api libs and libcygwin itself) should use the importlib
suffix .dll.a. 

This breaks building modules, e.g libgmp.dll.a will not be found where
a libgmp.a will be found by Liblist/  If there is no static
libgmp.a then the link fails because the Liblist contains nothing.

The patch (also attached):
--- lib/ExtUtils/Liblist/       2003-10-11 12:11:00.137542400 +0200
+++ lib/ExtUtils/Liblist/        2003-10-11 12:10:49.882796800 +0200
@@ -132,6 +132,7 @@
                 && ($thislib .= "_s") ){ # we must explicitly use _s version
            } elsif (-f ($fullname="$thispth/lib$thislib$Config_libext")){
            } elsif (-f ($fullname="$thispth/$thislib$Config_libext")){
+           } elsif (-f ($fullname="$thispth/lib$thislib.dll$Config_libext")){
            } elsif (-f ($fullname="$thispth/Slib$thislib$Config_libext")){
            } elsif ($^O eq 'dgux'
                 && -l ($fullname="$thispth/lib$thislib$Config_libext")


=^..^= Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About