summaryrefslogtreecommitdiff
path: root/meta/packages/perl/perl.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-21 12:28:06 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-21 12:28:06 +0000
commitf8c2f2200957db93982cbe549afe52df1836653c (patch)
tree5b8e85050be0dec39b19178b865eddc4fdea5aa3 /meta/packages/perl/perl.inc
parent4d0fb2b9e8f5591ed3e28484585388dc3341e44d (diff)
downloadopenembedded-core-f8c2f2200957db93982cbe549afe52df1836653c.tar.gz
openembedded-core-f8c2f2200957db93982cbe549afe52df1836653c.tar.bz2
openembedded-core-f8c2f2200957db93982cbe549afe52df1836653c.zip
perl: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@924 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/perl/perl.inc')
-rw-r--r--meta/packages/perl/perl.inc14
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 \
file://config.sh-mipsel-linux \
file://config.sh-i686-linux"
-HOSTPERL=${STAGING_BINDIR}/perl${PV}
+HOSTPERL="${STAGING_BINDIR}/perl${PV}"
do_configure() {
ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl
@@ -41,14 +41,17 @@ do_configure() {
do_compile() {
sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL
cd Cross
- oe_runmake perl
+ # You must use gcc to link on sh
+ OPTIONS=""
+ if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then
+ OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
+ fi
+ oe_runmake perl $OPTIONS
}
do_install() {
oe_runmake install
- # Make sure the shared library is configured before trying to move it
- grep -q "useshrplib='false'" ${S}/config.sh ||
- mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV}
+ mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV}
( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl )
}
@@ -77,3 +80,4 @@ FILES_${PN}-dbg += " \
${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/.debug \
${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/.debug \
${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/*/.debug"
+