Permalink
Browse files

allow setting of $inc and $lib from the command line

  • Loading branch information...
1 parent 71be26d commit 3c7261f4584137f4240d204731e20f709f1addb1 @salva committed May 27, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Makefile.PL
View
5 Makefile.PL
@@ -7,6 +7,11 @@ my $lib = '';
my $inc = '';
my $extra_libs = '-lz -lssl -lcrypto';
+for (@ARGV) {
+ /^inc=(.*)/ and $inc = $1;
+ /^lib=(.*)/ and $lib = $1;
+}
+
# Windows, as usual, is a special case
my $win32 = ($^O eq 'MSWin32');
my @define = $win32 ? (DEFINE => '-DLIBSSH2_WIN32') : ();

0 comments on commit 3c7261f

Please sign in to comment.