libraries used by standard perl modules. This was picking up LD from OE
which as the linking when we need to use gcc to link. Override LD when
calling oe_make to force the use of gcc to link.
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() {
PARALLEL_MAKE = ""
-PR = "r18"
+PR = "r19"
do_configure() {
ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl