diff options
-rw-r--r-- | meta/classes/cpan.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 05f2374f4f..1cfd0221dd 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass | |||
@@ -4,6 +4,7 @@ | |||
4 | inherit cpan-base | 4 | inherit cpan-base |
5 | 5 | ||
6 | EXTRA_CPANFLAGS ?= "" | 6 | EXTRA_CPANFLAGS ?= "" |
7 | EXTRA_PERLFLAGS ?= "" | ||
7 | 8 | ||
8 | # Env var which tells perl if it should use host (no) or target (yes) settings | 9 | # Env var which tells perl if it should use host (no) or target (yes) settings |
9 | export PERLCONFIGTARGET = "${@is_target(d)}" | 10 | export PERLCONFIGTARGET = "${@is_target(d)}" |
@@ -15,7 +16,7 @@ export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" | |||
15 | 16 | ||
16 | cpan_do_configure () { | 17 | cpan_do_configure () { |
17 | export PERL5LIB="${PERL_ARCHLIB}" | 18 | export PERL5LIB="${PERL_ARCHLIB}" |
18 | yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS} | 19 | yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL ${EXTRA_CPANFLAGS} |
19 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | 20 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then |
20 | . ${STAGING_LIBDIR}/perl/config.sh | 21 | . ${STAGING_LIBDIR}/perl/config.sh |
21 | # Use find since there can be a Makefile generated for each Makefile.PL | 22 | # Use find since there can be a Makefile generated for each Makefile.PL |