| 1 |
Description: do not link against unused libraries |
| 2 |
dpkg-shlibdeps complained about useless dependencies on libgfortran.so.3, |
| 3 |
libpng12.so.0, libX11.so.6 and libm.so.6 |
| 4 |
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=95006 |
| 5 |
Author: Florian Schlichting <[email protected]> |
| 6 |
Reviewed-by: gregor herrmann <[email protected]> |
| 7 |
Last-Update: 2021-11-21 |
| 8 |
|
| 9 |
--- a/Makefile.PL |
| 10 |
+++ b/Makefile.PL |
| 11 |
@@ -114,7 +114,6 @@ my $LIBDIRS = join(' ', map { "-L$_" } |
| 12 |
|
| 13 |
my $LIBS = join(' ', map { "-l$_" } |
| 14 |
qw/ cpgplot pgplot /, |
| 15 |
|
| 16 |
); |
| 17 |
|
| 18 |
my $IDIRS = join( ' ', map { "-I$_" } split( ',', $Arg{IDIR} ) ); |
| 19 |
@@ -195,7 +194,7 @@ if ( $is_vms ) { |
| 20 |
'pgplot_tmp/libpgplot.a' |
| 21 |
if -d 'pgplot_tmp'; |
| 22 |
|
| 23 |
|
| 24 |
+ $items{LIBS} = [ join( ' ', $LIBDIRS, $LIBS ) ]; |
| 25 |
|
| 26 |
# This is not ideal since it assumes that: |
| 27 |
# objc is required |