X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=perl%2FMakefile.PL;h=0b9deca2cc6ef77897a23b2096a7acdd577c2482;hb=c7e375de4228cdb86e2582e2eda7fa3a6f352fc2;hp=320253eb8e91eb1d914aa4e34f7d3af4649b9b39;hpb=00d3278c8534a8244ae3447189401111e017fd5d;p=git.git diff --git a/perl/Makefile.PL b/perl/Makefile.PL index 320253eb8..0b9deca2c 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -5,6 +5,14 @@ sub MY::postamble { instlibdir: @echo '$(INSTALLSITELIB)' +ifneq (,$(DESTDIR)) +ifeq (0,$(shell expr '$(MM_VERSION)' '>' 6.10)) +$(error ExtUtils::MakeMaker version "$(MM_VERSION)" is older than 6.11 and so \ + is likely incompatible with the DESTDIR mechanism. Try setting \ + NO_PERL_MAKEMAKER=1 instead) +endif +endif + MAKE_FRAG }