diff options
author | Tim Orling <ticotimo@gmail.com> | 2014-08-27 07:21:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-29 23:44:36 +0100 |
commit | 00317221bf462e99d3f30e0b075dfe894d80acf1 (patch) | |
tree | ace8b66771666a6c888ce2ffc5e6e21fbcbcc8c0 /meta/classes/cpan_build.bbclass | |
parent | fa9bb3070bac86802f3a894797681386472e95a2 (diff) | |
download | poky-00317221bf462e99d3f30e0b075dfe894d80acf1.tar.gz |
classes/cpan_build.bbclass: add EXTRA_CPAN_BUILD_FLAGS
Some packages have additional configuration options that are currently
not accessible through cpan_build.bbclass. Similar to cpan.bbclass, add
EXTRA_CPAN_BUILD_FLAGS to pass the optional parameters to perl Build.PL.
(From OE-Core rev: bef6c3f4ebcd19ea3845aab27a165c370102b62c)
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan_build.bbclass')
-rw-r--r-- | meta/classes/cpan_build.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass index 5b0ad61b4c..2eb8162314 100644 --- a/meta/classes/cpan_build.bbclass +++ b/meta/classes/cpan_build.bbclass | |||
@@ -3,6 +3,8 @@ | |||
3 | # | 3 | # |
4 | inherit cpan-base perlnative | 4 | inherit cpan-base perlnative |
5 | 5 | ||
6 | EXTRA_CPAN_BUILD_FLAGS ?= "" | ||
7 | |||
6 | # Env var which tells perl if it should use host (no) or target (yes) settings | 8 | # Env var which tells perl if it should use host (no) or target (yes) settings |
7 | export PERLCONFIGTARGET = "${@is_target(d)}" | 9 | export PERLCONFIGTARGET = "${@is_target(d)}" |
8 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | 10 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" |
@@ -36,7 +38,8 @@ cpan_build_do_configure () { | |||
36 | --install_path script=${bindir} \ | 38 | --install_path script=${bindir} \ |
37 | --install_path bin=${bindir} \ | 39 | --install_path bin=${bindir} \ |
38 | --install_path bindoc=${mandir}/man1 \ | 40 | --install_path bindoc=${mandir}/man1 \ |
39 | --install_path libdoc=${mandir}/man3 | 41 | --install_path libdoc=${mandir}/man3 \ |
42 | ${EXTRA_CPAN_BUILD_FLAGS} | ||
40 | } | 43 | } |
41 | 44 | ||
42 | cpan_build_do_compile () { | 45 | cpan_build_do_compile () { |