pkg-perl: move PERL_INC in configure step
authorFrancois Perrad <fperrad@gmail.com>
Sun, 9 Sep 2018 09:27:17 +0000 (11:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Sep 2018 13:09:36 +0000 (15:09 +0200)
this workaround for old ExtUtils-MakeMaker is now useless

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-perl.mk

index b0d5789ac5399c8103374106b80f56726bef8098..2888872dc8d85de7f53302de96b67c1e0caee537 100644 (file)
@@ -102,6 +102,7 @@ define $(2)_CONFIGURE_CMDS
                        LD="$$(TARGET_CC)" \
                        LDDLFLAGS="-shared $$(TARGET_LDFLAGS)" \
                        LDFLAGS="$$(TARGET_LDFLAGS)" \
+                       PERL_INC=$$(STAGING_DIR)/usr/lib/$$(PERL_INSTALL_NAME)/$$(PERL_VERSION)/$$(PERL_ARCHNAME)/CORE \
                        DESTDIR=$$(TARGET_DIR) \
                        INSTALLDIRS=vendor \
                        INSTALLVENDORLIB=/usr/lib/perl5/site_perl/$$(PERL_VERSION) \
@@ -147,7 +148,6 @@ define $(2)_BUILD_CMDS
                $$(PERL_RUN) Build $$($(2)_BUILD_OPTS) build; \
        else \
                $$(MAKE1) \
-                       PERL_INC=$$(STAGING_DIR)/usr/lib/perl5/$$(PERL_VERSION)/$$(PERL_ARCHNAME)/CORE \
                        FIXIN=: \
                        $$($(2)_BUILD_OPTS) pure_all; \
        fi