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