diff --git a/bindings/perl/Makefile.PL b/bindings/perl/Makefile.PL index fa4efda8..34ade057 100644 --- a/bindings/perl/Makefile.PL +++ b/bindings/perl/Makefile.PL @@ -4,7 +4,7 @@ use Config; use lib qw(lib); use Sigar::ArchName (); -my $installdir = "../java/sigar-bin"; +my $installdir = $ARGV[0] || "../../sigar-bin"; my $archname = Sigar::ArchName->get_name(); my $ccname = $Config{ccname};