[oe-commits] [meta-openembedded] 04/10: gperftools: separate off libtcmalloc-minimal

git at git.openembedded.org git at git.openembedded.org
Mon Jul 22 05:54:54 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 01a91f71deea2c5904a26d4931452def328ba501
Author: Anatol Belski <anatol.oe at belski.net>
AuthorDate: Mon Jul 22 00:53:30 2019 +0000

    gperftools: separate off libtcmalloc-minimal
    
    From: Anatol Belski <anbelski at microsoft.com>
    
    The libctmalloc-minimal is what is useful for C++ apps if only the
    improved allocator is needed. The gperftools package stays otherwise
    fully backward compatible as it's going to depend on libtcmalloc-minimal.
    The libtcmalloc-minimal can be installed separately, which allows for
    more flexibility and for cleaner image contents.
    
    The discussion on the patch
    https://patchwork.openembedded.org/patch/163234/ has shown, that a
    separate package for other libs might have less sense in this case, so
    it's not done. The patch 163234 can be abandoned in favor of this for
    now.
    
    Signed-off-by: Anatol Belski <anbelski at microsoft.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-support/gperftools/gperftools_2.7.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
index c8b9127..c48a981 100644
--- a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
+++ b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
@@ -28,3 +28,11 @@ COMPATIBLE_HOST_mipsarch_libc-glibc = "null"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 ARM_INSTRUCTION_SET_toolchain-clang_arm = "arm"
 
+# Ensure static libs are always enabled, as they seem to be not produced by
+# default at least on ARM.
+EXTRA_OECONF_append += " --enable-static"
+
+PACKAGE_BEFORE_PN += "libtcmalloc-minimal"
+FILES_libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}"
+RDEPENDS_${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})"
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list