]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_shlibdeps
r278: * dh_shlibdeps: detect statically linked binaries and don't pass them to
[debhelper.git] / dh_shlibdeps
index bd733b370602cf30860e1d92ab5122c3e42f0c5a..cdf1356612a115577e644e4db6524fc95343e127 100755 (executable)
@@ -17,7 +17,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        foreach $file (split(/\n/,`find $TMP -type f \\( -perm +111 -or -name "*.so*" \\)`)) {
                # TODO: this is slow, optimize. Ie, file can run once on multiple files..
                $ff=`file "$file"`;
-               if ($ff=~m/ELF/) {
+               if ($ff=~m/ELF/ && ! $ff=~/statically linked/) {
                        push @filelist,$file;
                }
        }