summaryrefslogtreecommitdiff
path: root/packages/perl/perl_5.8.7.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/perl/perl_5.8.7.bb')
-rw-r--r--packages/perl/perl_5.8.7.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/perl/perl_5.8.7.bb b/packages/perl/perl_5.8.7.bb
index 056fee2676..020f190108 100644
--- a/packages/perl/perl_5.8.7.bb
+++ b/packages/perl/perl_5.8.7.bb
@@ -53,7 +53,9 @@ do_configure() {
}
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
}