From 505bf74aa3a82bc8f6612bae854dc3ccc42467ac Mon Sep 17 00:00:00 2001 From: Marcel Denia Date: Mon, 11 Aug 2014 02:18:16 +0200 Subject: [PATCH] perl: Include installed extensions in host-perl Signed-off-by: Marcel Denia --- lang/perl/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/perl/Makefile b/lang/perl/Makefile index e914cd49a..25b32cb05 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -45,6 +45,7 @@ TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS)) include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk +include perlmod.mk define Package/perl SUBMENU:=Perl @@ -69,6 +70,11 @@ endef define Host/Install ( cd $(HOST_BUILD_DIR); ./miniperl installperl ) $(CP) $(HOST_BUILD_DIR)/generate_uudmap $(HOST_PERL_PREFIX)/bin/ + + # Link any possibly installed static extension in + $(MAKE) -C $(HOST_BUILD_DIR)/relink clean || true + ( cd $(HOST_BUILD_DIR)/relink && $(HOST_PERL_PREFIX)/bin/perl Makefile.PL ) + $(call perlmod/host/relink,$(HOST_BUILD_DIR)/relink) endef # Target perl @@ -119,5 +125,4 @@ $(eval $(call RequireCommand,rsync, \ $(eval $(call BuildPackage,perl)) $(eval $(call HostBuild)) -include perlmod.mk -include perlbase.mk