summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
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
OpenPOWER on IntegriCloud