[PATCH] pkgconf: disable building shared libraries

Rosen Penev rosenp at gmail.com
Thu Dec 24 20:01:26 EST 2020


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 <rosenp at 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




More information about the openwrt-devel mailing list