From f8c2f2200957db93982cbe549afe52df1836653c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 21 Nov 2006 12:28:06 +0000 Subject: perl: Sync with OE.dev git-svn-id: https://svn.o-hand.com/repos/poky/trunk@924 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/perl/perl.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'meta/packages/perl/perl.inc') diff --git a/meta/packages/perl/perl.inc b/meta/packages/perl/perl.inc index 9824e0739..7e42f4531 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" + -- cgit v1.2.3