summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2026-03-12 18:51:22 +0800
committerKhem Raj <raj.khem@gmail.com>2026-03-17 13:25:25 -0700
commita3966a6b8e0538a74e4b068ad6dbc959e1b62c56 (patch)
treead5af504addbf91f42aa7bd262acdd0fada62881 /meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb
parent7a84f7883216b883585a810943209bd6d7858bba (diff)
downloadmeta-openembedded-a3966a6b8e0538a74e4b068ad6dbc959e1b62c56.tar.gz
gperftools: upgrade 2.18 -> 2.18.1
Changelog: fix for compilation failure on PPC. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb')
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb64
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb b/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb
new file mode 100644
index 0000000000..f2244c43fa
--- /dev/null
+++ b/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb
@@ -0,0 +1,64 @@
1SUMMARY = "Fast, multi-threaded malloc() and nifty performance analysis tools"
2HOMEPAGE = "https://github.com/gperftools/gperftools"
3DESCRIPTION = "The gperftools, previously called google-perftools, package contains some \
4utilities to improve and analyze the performance of C++ programs. \
5Included are an optimized thread-caching malloc() and cpu and heap profiling utilities. \
6"
7
8LICENSE = "BSD-3-Clause"
9LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a"
10
11DEPENDS:append:libc-musl = " libucontext"
12
13SRCREV = "d837a42788ba591d5d791c3b686f2738e7a93562"
14SRC_URI = "git://github.com/gperftools/gperftools;branch=master;protocol=https;tag=gperftools-${PV}"
15
16SRC_URI:append:libc-musl = " \
17 file://ppc-musl.patch \
18 file://0002-src-base-elf_mem_image.cc-fix-build-for-musl.patch \
19 file://0003-Makefile.am-disable-building-noinst-tests-for-musl.patch \
20 "
21
22inherit autotools
23
24
25# On mips, we have the following error.
26# do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008
27# Segmentation fault (core dumped)
28COMPATIBLE_HOST:mipsarch = "null"
29COMPATIBLE_HOST:riscv64 = "null"
30COMPATIBLE_HOST:riscv32 = "null"
31
32# Disable thumb1
33# {standard input}: Assembler messages:
34# {standard input}:434: Error: lo register required -- `ldr pc,[sp]'
35# Makefile:4538: recipe for target 'src/base/libtcmalloc_la-linuxthreads.lo' failed
36ARM_INSTRUCTION_SET:armv5 = "arm"
37ARM_INSTRUCTION_SET:toolchain-clang:arm = "arm"
38
39EXTRA_OECONF:append:libc-musl:powerpc64le = " --disable-cpu-profiler"
40EXTRA_OECONF:append:libc-musl:powerpc = " --disable-cpu-profiler"
41PACKAGECONFIG ?= "libunwind static"
42PACKAGECONFIG:remove:arm:libc-musl = "libunwind"
43PACKAGECONFIG:remove:riscv64 = "libunwind"
44PACKAGECONFIG:remove:riscv32 = "libunwind"
45
46PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind"
47PACKAGECONFIG[static] = "--enable-static,--disable-static,"
48
49PACKAGE_BEFORE_PN += "libtcmalloc-minimal"
50FILES:libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}"
51
52# pprof tool requires Getopt::long and POSIX perl5 modules.
53# Also runs `objdump` on each cpuprofile data file
54RDEPENDS:${PN} += " \
55 binutils \
56 curl \
57 perl-module-carp \
58 perl-module-cwd \
59 perl-module-getopt-long \
60 perl-module-overloading \
61 perl-module-posix \
62"
63
64RDEPENDS:${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})"