+2007-12-08 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/dpkg-shlibdeps.pl: Doesn't warn any more about libm.so.6
+ being unused if the binary is also linked against libstdc++ since
+ g++ always add an implicit -lm.
+
2007-12-08 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg/Shlibs.pm (find_library): When it finds a library
* When dpkg-shlibdeps finds a lib in a directory which is just a symlink to
another directory that is also considered, remember the other directory
name as the canonical one. Closes: #453885
+ * dpkg-shlibdeps doesn't warn any more about libm.so.6 being unused if the
+ binary is also linked against libstdc++ since g++ always add an implicit
+ -lm. Closes: #454616
[ Updated man pages translations ]
* Swedish (Peter Karlsson)
# Warn about un-NEEDED libraries
foreach my $soname (@sonames) {
unless ($soname_notfound{$soname} or $used_sonames{$soname}) {
+ # Ignore warning for libm.so.6 if also linked against libstdc++
+ next if ($soname =~ /^libm\.so\.\d+$/ and
+ scalar grep(/^libstdc\+\+\.so\.\d+/, @sonames));
warning(_g("%s shouldn't be linked with %s (it uses none of its " .
"symbols)."), $file, $soname);
}