diff options
Diffstat (limited to 'perl/Makefile.PL')
-rw-r--r-- | perl/Makefile.PL | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL index 97ee9af9c9..ef9d82d7b6 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -22,10 +22,14 @@ if ($@) { $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm'; } +my %extra; +$extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR}; + WriteMakefile( NAME => 'Git', VERSION_FROM => 'Git.pm', PM => \%pm, MYEXTLIB => '../libgit.a', INC => '-I. -I..', + %extra ); |