Subject: | Easier overrides for LIBSSH INC and LIB |
--- Makefile.PL.orig 2013-02-20 15:54:35.000000000 -0500
When compiling using non-standard libssh2 paths, especially on Solaris, it is helpful to stack the deck by allowing the caller of Makefile.PL to completely specify all of the linker options. Without this patch, it is difficult/impossible to add rpath to LIBS.
+++ Makefile.PL 2013-03-25 14:09:31.000000000 -0400
@@ -4,9 +4,9 @@
use Module::Install::CheckLib ();
# override library and include directories here if desired
-my $lib = '';
-my $inc = '';
-my $extra_libs = '-lz';
+my $lib = $ENV{LIBSSH_LIBDIR} || '';
+my $inc = $ENV{LIBSSH_INCDIR} || '';
+my $extra_libs = '-lz -lssl -lcrypto '.$ENV{LIBSSH_EXTRA};
my $use_gcrypt = 0;
my @args = @ARGV;