From 3c7261f4584137f4240d204731e20f709f1addb1 Mon Sep 17 00:00:00 2001 From: Salvador Fandino Date: Fri, 27 May 2011 10:53:10 +0200 Subject: [PATCH] allow setting of $inc and $lib from the command line --- Makefile.PL | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 1267d64..7328897 100644 --- a/Makefile.PL +++ b/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') : ();