From: Graham Knop Date: Tue, 19 Apr 2016 00:40:08 +0000 (-0400) Subject: don't rely on . being in @INC X-Git-Tag: v2.000003~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b50be891ab313bd9003f5654f1e1f164c543027a;p=p5sagit%2Fstrictures.git don't rely on . being in @INC --- diff --git a/Makefile.PL b/Makefile.PL index 27d6a21..9a1774a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,12 @@ use strict; use warnings FATAL => 'all'; use 5.006; -require "inc/ExtUtils/HasCompiler.pm"; +use lib 'inc'; +use ExtUtils::HasCompiler 'can_compile_loadable_object'; my $have_compiler = ! parse_args()->{PUREPERL_ONLY} - && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1); + && can_compile_loadable_object(quiet => 1); my %extra_prereqs = ( indirect => 0,