aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2015-09-04 10:31:13 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-02 20:56:52 +0100
commit2e39ffcc6aa227b619cb7fc74dd14445108d4937 (patch)
tree2b2c6e3a5a58e17268b47a6db00ecd2aaab077c6 /package
parent515a6c0fbd13d9ded910e1310a8594a0be313671 (diff)
downloadbuildroot-2e39ffcc6aa227b619cb7fc74dd14445108d4937.tar.gz
buildroot-2e39ffcc6aa227b619cb7fc74dd14445108d4937.tar.bz2
pkg-perl: refactor perl infrastructure
the perl dependency of cpan module is no longer generated by scancpan, but added at the infrastructure level Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/pkg-perl.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk
index 6577588db8..a06c068bb6 100644
--- a/package/pkg-perl.mk
+++ b/package/pkg-perl.mk
@@ -39,7 +39,15 @@ PERL_RUN = PERL5LIB= $(HOST_DIR)/usr/bin/perl
define inner-perl-package
+# Target packages need both the perl interpreter on the target (for
+# runtime) and the perl interpreter on the host (for
+# compilation). However, host packages only need the perl
+# interpreter on the host.
+ifeq ($(4),target)
+$(2)_DEPENDENCIES += host-perl perl
+else
$(2)_DEPENDENCIES += host-perl
+endif
#
# Configure step. Only define it if not already defined by the package