X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=perl%2FMakefile.PL;h=0b9deca2cc6ef77897a23b2096a7acdd577c2482;hb=8678bc09e3a553fdacfbf7f8493e400c399f8e7b;hp=320253eb8e91eb1d914aa4e34f7d3af4649b9b39;hpb=521ae135b7dcae27fb78e1b941f50158558108e6;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 }