gperftools: include headers in the staging_dir
authorJosef Schlehofer <[email protected]>
Thu, 9 Oct 2025 06:54:51 +0000 (08:54 +0200)
committerJosef Schlehofer <[email protected]>
Fri, 10 Oct 2025 06:17:55 +0000 (08:17 +0200)
This fixes version detection issues when other packages (like snort3)
try to find the tcmalloc library using CMake's find_package(). Without
the headers in the staging directory, CMake cannot read the version
information from tcmalloc.h, resulting in empty version strings.

Fixes:
Found TCMalloc: /builder/staging_dir/target-x86_64_musl/usr/lib/libtcmalloc.so (found version "")

Signed-off-by: Josef Schlehofer <[email protected]>
libs/gperftools/Makefile

index 5279e5318fbcae274ff7da11d8055f403ffecab9..db2a8a20841b842fdf91ec69ae96d94560af5fb4 100644 (file)
@@ -55,6 +55,8 @@ CONFIGURE_ARGS += \
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcmalloc.so* $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/include/gperftools
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/gperftools/*.h $(1)/usr/include/gperftools/
 endef
 
 define Package/gperftools-headers/install