pkgconf uses libpkgconf. disabling shared libraries makes it be linked
statically. Helps to avoid issues regarding finding the library with a
wrong rpath. Nothing uses libpkgconf anyway.

Signed-off-by: Rosen Penev <ros...@gmail.com>
---
 tools/pkgconf/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/pkgconf/Makefile b/tools/pkgconf/Makefile
index 0f56de0e29..23e6fdf5f3 100644
--- a/tools/pkgconf/Makefile
+++ b/tools/pkgconf/Makefile
@@ -21,6 +21,9 @@ unexport PKG_CONFIG
 
 HOSTCC := $(HOSTCC_NOCACHE)
 
+HOST_CONFIGURE_ARGS += \
+       --disable-shared
+
 define Host/Install
        $(MAKE) -C $(HOST_BUILD_DIR) install
        mv $(STAGING_DIR_HOST)/bin/pkgconf 
$(STAGING_DIR_HOST)/bin/pkg-config.real
-- 
2.29.2


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to