Skip to content

Commit

Permalink
allow setting of $inc and $lib from the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
salva committed May 27, 2011
1 parent 71be26d commit 3c7261f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.PL
Expand Up @@ -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') : ();
Expand Down

0 comments on commit 3c7261f

Please sign in to comment.