From d6d915d0cc58e82f85c1c66354962dd648e3b6a8 Mon Sep 17 00:00:00 2001 From: kszaq <737984+kszaq@users.noreply.github.com> Date: Sat, 15 May 2021 09:33:49 +0200 Subject: [PATCH] Add TCMALLOC_SUPPORT parameter to add libtcmalloc_minimal to the image --- config/options | 2 ++ packages/virtual/libc/package.mk | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/options b/config/options index 974860b1f5..b19bf5e0c3 100644 --- a/config/options +++ b/config/options @@ -33,8 +33,10 @@ TARGET_ARCH="${ARCH}" # include arm-mem package on arm if [ "${TARGET_ARCH}" = "arm" ]; then ARM_MEM_SUPPORT="yes" + TCMALLOC_SUPPORT="yes" else ARM_MEM_SUPPORT="no" + TCMALLOC_SUPPORT="no" fi # include helper functions diff --git a/packages/virtual/libc/package.mk b/packages/virtual/libc/package.mk index 8aae341393..f4ad489239 100644 --- a/packages/virtual/libc/package.mk +++ b/packages/virtual/libc/package.mk @@ -16,3 +16,7 @@ if [ "${ARM_MEM_SUPPORT}" = "yes" ]; then PKG_DEPENDS_TARGET+=" arm-mem" PKG_DEPENDS_INIT+=" arm-mem:init" fi + +if [ "${TCMALLOC_SUPPORT}" = "yes" ]; then + PKG_DEPENDS_TARGET+=" gperftools" +fi