From: Francois Perrad Date: Sat, 11 Oct 2014 06:36:43 +0000 (+0200) Subject: perl: add host variant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43f69458aef4987c6c59a45f75ffaec53d397d8f;p=buildroot.git perl: add host variant Signed-off-by: Francois Perrad Signed-off-by: Peter Korsgaard --- diff --git a/package/perl/perl.mk b/package/perl/perl.mk index 1816a9e2bf..16a8d68dd2 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -126,7 +126,25 @@ endef PERL_POST_INSTALL_STAGING_HOOKS += PERL_ADD_CORE_H +HOST_PERL_CONF_OPTS = \ + -des \ + -Dprefix="$(HOST_DIR)/usr" \ + -Dcc="$(HOSTCC)" + +define HOST_PERL_CONFIGURE_CMDS + (cd $(@D); HOSTCC='$(HOSTCC_NOCACHE)' ./Configure $(HOST_PERL_CONF_OPTS)) +endef + +define HOST_PERL_BUILD_CMDS + $(MAKE) -C $(@D) +endef + +define HOST_PERL_INSTALL_CMDS + $(MAKE) -C $(@D) INSTALL_DEPENDENCE='' install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package)) define PERL_FINALIZE_TARGET rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod