Description: do not link against unused libraries dpkg-shlibdeps complained about useless dependencies on libgfortran.so.3, libpng12.so.0, libX11.so.6 and libm.so.6 Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=95006 Author: Florian Schlichting Reviewed-by: gregor herrmann Last-Update: 2021-11-21 --- a/Makefile.PL +++ b/Makefile.PL @@ -114,7 +114,6 @@ my $LIBDIRS = join(' ', map { "-L$_" } my $LIBS = join(' ', map { "-l$_" } qw/ cpgplot pgplot /, - map { split( ',', $_ ) } @Arg{qw/ XLIB EXLIB /} ); my $IDIRS = join( ' ', map { "-I$_" } split( ',', $Arg{IDIR} ) ); @@ -195,7 +194,7 @@ if ( $is_vms ) { 'pgplot_tmp/libpgplot.a' if -d 'pgplot_tmp'; - $items{LIBS} = [ join( ' ', $LIBDIRS, $LIBS, ExtUtils::F77->runtime ) ]; + $items{LIBS} = [ join( ' ', $LIBDIRS, $LIBS ) ]; # This is not ideal since it assumes that: # objc is required