summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb')
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
index accbffdfd..301b5505d 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" 4LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
5 5
6DEPENDS = "sysfsutils perl" 6DEPENDS = "sysfsutils perl"
7RDEPENDS_${PN} += "bash perl python python-io python-lang python-subprocess python-resource" 7RDEPENDS_${PN} += "bash perl python python-io python-lang python-subprocess python-resource ${PN}-perl"
8RDEPENDS_${PN}-tests += "bash" 8RDEPENDS_${PN}-tests += "bash"
9 9
10PV = "2.19" 10PV = "2.19"
@@ -37,6 +37,7 @@ CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0
37TARGET_CC_ARCH += "${LDFLAGS}" 37TARGET_CC_ARCH += "${LDFLAGS}"
38 38
39#The CUSTOM_LDSCRIPTS doesn't work with the gold linker 39#The CUSTOM_LDSCRIPTS doesn't work with the gold linker
40inherit cpan-base
40do_configure() { 41do_configure() {
41 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then 42 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
42 sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile 43 sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile
@@ -44,6 +45,11 @@ do_configure() {
44 45
45 # fixup perl module directory hardcoded to perl5 46 # fixup perl module directory hardcoded to perl5
46 sed -i 's/perl5/perl/g' Makefile 47 sed -i 's/perl5/perl/g' Makefile
48
49 # fixup to install perl module under $(LIBDIR)/perl/${@get_perl_version(d)}/TLBC
50 # to avoid below error
51 # Can't locate TLBC/OpCollect.pm in @INC
52 sed -i '/^PMDIR/ s:perl:perl/${@get_perl_version(d)}:g' Makefile
47} 53}
48 54
49do_install() { 55do_install() {