From: Jo-Philipp Wich Date: Fri, 30 Aug 2019 13:28:27 +0000 (+0200) Subject: tools: libelf: install pkg-config file X-Git-Tag: v1.5.0-rc2~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9100c1ad6b57ce78b4b9f75318491ea10f71a8d8;p=librecmc%2Flibrecmc.git tools: libelf: install pkg-config file Install the pkg-config definition for libelf in order to allow the kernel build process discover it later on. Signed-off-by: Jo-Philipp Wich (cherry picked from commit d3f86c9cc3e465fbca51aaadbb274856831ba56c) --- diff --git a/tools/libelf/Makefile b/tools/libelf/Makefile index 31e2eaf0a8..9fec8308b5 100644 --- a/tools/libelf/Makefile +++ b/tools/libelf/Makefile @@ -37,15 +37,17 @@ define Host/Compile endef define Host/Install - $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/libelf} + $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib/pkgconfig,include/libelf} $(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \ $(STAGING_DIR_HOST)/include/libelf/ $(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/ + $(CP) $(HOST_BUILD_DIR)/libelf.pc $(STAGING_DIR_HOST)/lib/pkgconfig/ endef define Host/Clean rm -rf $(STAGING_DIR_HOST)/include/libelf rm -f $(STAGING_DIR_HOST)/lib/libelf.a + rm -f $(STAGING_DIR_HOST)/lib/pkgconfig/libelf.pc $(call Host/Clean/Default) endef