mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
perl-native: Wrap the perl binary and set the LIB directory correctly removing the need to hardcode the paths and rebuild it
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
|
|||||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||||
DEPENDS = "virtual/db-native gdbm-native"
|
DEPENDS = "virtual/db-native gdbm-native"
|
||||||
PR = "r0"
|
PR = "r1"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||||
@@ -88,6 +88,8 @@ do_install () {
|
|||||||
thread.h warnings.h; do
|
thread.h warnings.h; do
|
||||||
install $i ${D}${libdir}/perl/${PV}/CORE
|
install $i ${D}${libdir}/perl/${PV}/CORE
|
||||||
done
|
done
|
||||||
|
|
||||||
|
create_wrapper ${D}${bindir}/perl PERL5LIB=${STAGING_LIBDIR}/perl/5.12.2:${STAGING_LIBDIR}/perl/
|
||||||
}
|
}
|
||||||
do_install_append_nylon() {
|
do_install_append_nylon() {
|
||||||
# get rid of definitions not supported by the gcc version we use for nylon...
|
# get rid of definitions not supported by the gcc version we use for nylon...
|
||||||
@@ -97,8 +99,3 @@ do_install_append_nylon() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PARALLEL_MAKE = ""
|
PARALLEL_MAKE = ""
|
||||||
|
|
||||||
# Perl encodes the staging path into the perl binary so we have to depend on this
|
|
||||||
# as part of the checksum for now
|
|
||||||
HARDPATH := "${STAGING_BINDIR}"
|
|
||||||
do_populate_sysroot[vardeps] += "HARDPATH"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user