perl-cross: workaround with PERL5LIB no longer needed
authorFrancois Perrad <fperrad@gmail.com>
Wed, 8 Jan 2014 12:27:27 +0000 (13:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 8 Jan 2014 21:34:32 +0000 (22:34 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/perl/perl.mk

index bf8eac212cc6cc56bf3a4716467b722ce7aa58fc..ec94e4fa34b24b1d58926472de289985e5178202 100644 (file)
@@ -82,14 +82,12 @@ define PERL_CONFIGURE_CMDS
        $(SED) 's/UNKNOWN-/Buildroot $(BR2_VERSION_FULL) /' $(@D)/patchlevel.h
 endef
 
-# perlcross's miniperl_top forgets base, which is required by mktables.
-# Instead of patching, it's easier to just set PERL5LIB
 define PERL_BUILD_CMDS
-       PERL5LIB=$(@D)/dist/base/lib $(MAKE1) -C $(@D) all
+       $(MAKE1) -C $(@D) all
 endef
 
 define PERL_INSTALL_STAGING_CMDS
-       PERL5LIB=$(@D)/dist/base/lib $(MAKE1) -C $(@D) DESTDIR="$(STAGING_DIR)" install.perl
+       $(MAKE1) -C $(@D) DESTDIR="$(STAGING_DIR)" install.perl
 endef
 
 PERL_INSTALL_TARGET_GOALS = install.perl
@@ -99,7 +97,7 @@ endif
 
 
 define PERL_INSTALL_TARGET_CMDS
-       PERL5LIB=$(@D)/dist/base/lib $(MAKE1) -C $(@D) DESTDIR="$(TARGET_DIR)" $(PERL_INSTALL_TARGET_GOALS)
+       $(MAKE1) -C $(@D) DESTDIR="$(TARGET_DIR)" $(PERL_INSTALL_TARGET_GOALS)
 endef
 
 $(eval $(generic-package))