diff options
Diffstat (limited to 'meta/packages/perl/perl.inc')
-rw-r--r-- | meta/packages/perl/perl.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/meta/packages/perl/perl.inc b/meta/packages/perl/perl.inc index 9824e0739b..7e42f45314 100644 --- a/meta/packages/perl/perl.inc +++ b/meta/packages/perl/perl.inc | |||
@@ -14,7 +14,7 @@ SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \ | |||
14 | file://config.sh-mipsel-linux \ | 14 | file://config.sh-mipsel-linux \ |
15 | file://config.sh-i686-linux" | 15 | file://config.sh-i686-linux" |
16 | 16 | ||
17 | HOSTPERL=${STAGING_BINDIR}/perl${PV} | 17 | HOSTPERL="${STAGING_BINDIR}/perl${PV}" |
18 | 18 | ||
19 | do_configure() { | 19 | do_configure() { |
20 | ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl | 20 | ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl |
@@ -41,14 +41,17 @@ do_configure() { | |||
41 | do_compile() { | 41 | do_compile() { |
42 | sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL | 42 | sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL |
43 | cd Cross | 43 | cd Cross |
44 | oe_runmake perl | 44 | # You must use gcc to link on sh |
45 | OPTIONS="" | ||
46 | if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then | ||
47 | OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc" | ||
48 | fi | ||
49 | oe_runmake perl $OPTIONS | ||
45 | } | 50 | } |
46 | 51 | ||
47 | do_install() { | 52 | do_install() { |
48 | oe_runmake install | 53 | oe_runmake install |
49 | # Make sure the shared library is configured before trying to move it | 54 | mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV} |
50 | grep -q "useshrplib='false'" ${S}/config.sh || | ||
51 | mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV} | ||
52 | ( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl ) | 55 | ( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl ) |
53 | } | 56 | } |
54 | 57 | ||
@@ -77,3 +80,4 @@ FILES_${PN}-dbg += " \ | |||
77 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/.debug \ | 80 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/.debug \ |
78 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/.debug \ | 81 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/.debug \ |
79 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/*/.debug" | 82 | ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/*/.debug" |
83 | |||