darwin can have libfoo.0.dylib, as opposed to libfoo.dylib.0
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Sep 2014 21:42:04 +0000 (17:42 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 19 Sep 2014 13:26:53 +0000 (09:26 -0400)
Configure was changed similarly in d98292cc

cpan module; patch submitted upstream:
https://rt.cpan.org/Ticket/Display.html?id=98766
and has been applied.

cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm

index e39c8b2..ca12afd 100644 (file)
@@ -106,8 +106,10 @@ sub _unix_os2_ext {
             # For gcc-2.6.2 on linux (March 1995), DLD can not load
             # .sa libraries, with the exception of libm.sa, so we
             # deliberately skip them.
-            if ( @fullname = $self->lsdir( $thispth, "^\Qlib$thislib.$so.\E[0-9]+" ) ) {
-
+            if ((@fullname =
+                 $self->lsdir($thispth, "^\Qlib$thislib.$so.\E[0-9]+")) ||
+                (@fullname =
+                 $self->lsdir($thispth, "^\Qlib$thislib.\E[0-9]+\Q\.$so"))) {
                 # Take care that libfoo.so.10 wins against libfoo.so.9.
                 # Compare two libraries to find the most recent version
                 # number.  E.g.  if you have libfoo.so.9.0.7 and