perlmod: redux handling odd Makefile.PL eval value 5082/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 7 Nov 2017 22:49:18 +0000 (15:49 -0700)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 7 Nov 2017 23:13:02 +0000 (16:13 -0700)
It seems that Inline::C evaluates to undef which is problematic, so
we need to handle this better.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
lang/perl/perlmod.mk

index 2ad21e4b537143137b4f621e2c98e1725a6c876e..04ae49053ba6ce12d7804fa4a08ca29184abf0b8 100644 (file)
@@ -57,7 +57,7 @@ define perlmod/Configure
        (cd $(if $(3),$(3),$(PKG_BUILD_DIR)); \
        PERL_MM_USE_DEFAULT=1 \
        $(2) \
-       $(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; unshift(@INC, "."); unless (defined (do "./Makefile.PL")) { if ($$$$@) { die "couldn\047t parse Makefile.PL: $$$$@"; } else { die "couldn\047t do Makefile.PL: $$$$!"; } }; die "No Makefile generated!" unless -f "Makefile";' \
+       $(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; unshift(@INC, "."); unless (defined (do "./Makefile.PL")) { if ($$$$@) { die "couldn\047t parse Makefile.PL: $$$$@"; } elsif ($$$$!) { die "Could\047t run Makefile.PL: $$$$!"; } }; die "No Makefile generated!" unless -f "Makefile";' \
                $(1) \
                AR=ar \
                CC=$(GNU_TARGET_NAME)-gcc \