to enable building on sh3/sh4 where toolchain issues prevent this from
working. The changes check the perl config.sh for useshrplib to determine if
the shared library is being made before doing things with it during install.
do_install() {
oe_runmake install
- mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV}
+ # 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}
( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl )
}
}
do_install_append() {
- ln -s libperl.so.${PV} ${D}/${libdir}/libperl.so.5
+ # Make sure the shared library is configured before trying to symlink it
+ grep -q "useshrplib='false'" ${S}/config.sh ||
+ ln -s libperl.so.${PV} ${D}/${libdir}/libperl.so.5
sed -i -e "s,${D},,g" ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/Config_heavy.pl
}