perl: Override cpprun configuration symbol
authorMarcel Denia <naoir@gmx.net>
Sat, 2 May 2015 14:30:16 +0000 (16:30 +0200)
committerMarcel Denia <naoir@gmx.net>
Wed, 27 May 2015 00:03:56 +0000 (02:03 +0200)
This will not change any existing packages' functionality. All packages
that used this symbol before during build(with it's value being "cc  -E") most
likely would've failed compilation.
Note that this change is only in effect during build.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/perlmod.mk

index 60d3335e04072de411f3d1f31dd46c47d0b024d8..05ddf283c834693beb20def620b3f1d8ed6bf155 100644 (file)
@@ -55,7 +55,7 @@ define perlmod/Configure
        (cd $(if $(3),$(3),$(PKG_BUILD_DIR)); \
        PERL_MM_USE_DEFAULT=1 \
        $(2) \
-       $(PERL_CMD) Makefile.PL \
+       $(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; do "Makefile.PL"' \
                $(1) \
                AR=ar \
                CC=$(GNU_TARGET_NAME)-gcc \