Handle statically linked shared libs.
authorMikko Värri <vmj@linuxbox.fi>
Fri, 30 Sep 2011 00:10:20 +0000 (03:10 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Fri, 30 Sep 2011 00:10:20 +0000 (03:10 +0300)
lib/Slackware/File.pm

index a7e270e..2052d55 100644 (file)
@@ -167,6 +167,8 @@ sub required_shared_libraries {
         $line =~ s[^[-_./a-zA-Z0-9+]+\s+=>\s+][];
         $line =~ s[\s*\(0x[0-9a-fA-F]+\)$][];
         next unless $line;
+        # some shared libs are themselves statically linked (e.g. libaio).
+        next if $line eq "statically linked";
         if ( -l "$line" ) {
             my $dest = Slackware::Cache::readlink($line);
             chomp($dest);