summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2006-09-29 01:53:49 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2006-09-29 01:53:49 +0000
commit32cfcbd4b3a9db64adbe98fa84363f2352bec05e (patch)
tree70dab6e7190faf12b58c0879f78cf2e1f6c04fbc /classes
parent8c3b8c97db1b8fbef02db8b6dc41cd7adc281e7e (diff)
parent25c52e178047a53799c21ceddfb83d1fa134508d (diff)
merge of '6867f0ae417cb46146424365283886d722fc2431'
and '9a846512d8d824d05d745bcdc6285cc8c247b078'
Diffstat (limited to 'classes')
-rw-r--r--classes/cpan.bbclass2
-rw-r--r--classes/cpan_build.bbclass17
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):