look for .so files when we can't find the .a (adjusted based on %Config) v0.006
authorTony Cook <tony@develop-help.com>
Wed, 9 Apr 2008 09:27:41 +0000 (09:27 +0000)
committerTony Cook <tony@develop-help.com>
Wed, 9 Apr 2008 09:27:41 +0000 (09:27 +0000)
Makefile.PL

index b008891332368d4727d2ad18bbc0436f32e7e09d..0a521d69c569f4b8fefb9a691504c3bde607e279 100644 (file)
@@ -159,11 +159,16 @@ sub find_lib {
   my $libname;
   if ($^O eq 'MSWin32' && $Config{_a} eq '.lib') {
     $libname = $name . $Config{_a};
+    @found = _find_file($libname, library_search_path());
   }
   else {
     $libname = "lib" . $name . $Config{_a};
+    @found = _find_file($libname, library_search_path());
+    if (!@found && $Config{so}) {
+      $libname = "lib" . $name . "." . $Config{so};
+      @found = _find_file($libname, library_search_path());
+    }
   }
-  @found = _find_file($libname, library_search_path());
   if (@found) {
     push @lflags, "-L$_" for grep !$seen_libdir{$_}, @found;
     @seen_libdir{@found} = (1) x @found;