diff options
| author | Paul Sokolovsky <pmiscml@gmail.com> | 2006-09-29 20:27:05 +0000 |
|---|---|---|
| committer | Paul Sokolovsky <pmiscml@gmail.com> | 2006-09-29 20:27:05 +0000 |
| commit | fcfd06f1b5a0bea5854a50545b3fc102307d6df5 (patch) | |
| tree | 04a7daf67455430fc66be007304c5d372626a635 /classes | |
| parent | 0a8de950d944b9cf635954c8df028c697ceee5be (diff) | |
| parent | 905dbfb7f99775d508d89de2d69f1b026033661d (diff) | |
merge of '98c11111632ec1f22cd780bfc86f7f03dc5bfbcb'
and 'f34d4b68a24b0179a8f2bdb573db7a7be933641a'
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/cpan.bbclass | 2 | ||||
| -rw-r--r-- | classes/cpan_build.bbclass | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index c48bd1a980..0b90e754df 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -17,7 +17,7 @@ cpan_do_configure () { } cpan_do_compile () { - oe_runmake PASTHRU_INC="${CFLAGS}" + oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" } cpan_do_install () { diff --git a/classes/cpan_build.bbclass b/classes/cpan_build.bbclass index b7cdf7d821..0660ef9b82 100644 --- a/classes/cpan_build.bbclass +++ b/classes/cpan_build.bbclass @@ -7,6 +7,23 @@ FILES_${PN} += '${libdir}/perl5' DEPENDS += "perl-native" RDEPENDS += "perl" +# +# We also need to have built libmodule-build-perl-native for +# everything except libmodule-build-perl-native itself (which uses +# this class, but uses itself as the probider of +# libmodule-build-perl) +# +def cpan_build_dep_prepend(d): + import bb; + if bb.data.getVar('CPAN_BUILD_DEPS', d, 1): + return '' + pn = bb.data.getVar('PN', d, 1) + if pn in ['libmodule-build-perl', 'libmodule-build-perl-native']: + return '' + return 'libmodule-build-perl-native ' + +DEPENDS_prepend = "${@cpan_build_dep_prepend(d)}" + def is_crosscompiling(d): import bb if not bb.data.inherits_class('native', d): |
