summaryrefslogtreecommitdiff
path: root/classes/cpan.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2007-04-27 02:22:26 +0000
committerJamie Lenehan <lenehan@twibble.org>2007-04-27 02:22:26 +0000
commit3cc9d5463dac0412d5591b506e308f3e9cde0494 (patch)
tree076389f0b6fafb35bb934f59da1112b53f14c080 /classes/cpan.bbclass
parentd36cfdf760300d86a03390e7db6d7ef6e363706a (diff)
cpan: Use CCLD for the linking instead of ${TARGET_SYS}-gcc. Without this
native packages break because <buildarch>-gcc doesn't exist, just gcc. CCLD gets us the correct CC to be used for linking in both cases, so we use that.
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r--classes/cpan.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 52430560ea..00709f7e18 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -68,7 +68,7 @@ cpan_do_configure () {
cpan_do_compile () {
if [ "${IS_NEW_PERL}" = "yes" ]; then
- oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD=${TARGET_SYS}-gcc
+ oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
else
# You must use gcc to link on sh
OPTIONS=""