diff options
author | Francois Perrad <fperrad@gmail.com> | 2014-10-11 08:36:43 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-10-17 14:17:48 +0200 |
commit | 43f69458aef4987c6c59a45f75ffaec53d397d8f (patch) | |
tree | 2b26008cea580d2711f3f9b96346016469d2ea95 /package/perl | |
parent | 8e716d659b08635bba703d9ae0867d8590f6b083 (diff) |
perl: add host variant
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/perl')
-rw-r--r-- | package/perl/perl.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/perl/perl.mk b/package/perl/perl.mk index 1816a9e2b..16a8d68dd 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 |