[Buildroot] [PATCH 1/1] libcap: only install shared version

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue May 8 16:11:36 UTC 2018


If BR2_SHARED_LIBS is set, only install shared version of library
(continue to build both libraries through all target as there is no
libcap.so target but only a libcap.so.$(VERSION).$(MINOR))

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/libcap/libcap.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
index 48c2cb3456..247fd8a58f 100644
--- a/package/libcap/libcap.mk
+++ b/package/libcap/libcap.mk
@@ -20,8 +20,12 @@ LIBCAP_MAKE_TARGET = libcap.a libcap.pc
 LIBCAP_MAKE_INSTALL_TARGET = install-static
 else
 LIBCAP_MAKE_TARGET = all
+ifeq ($(BR2_SHARED_LIBS),y)
+LIBCAP_MAKE_INSTALL_TARGET = install-shared
+else
 LIBCAP_MAKE_INSTALL_TARGET = install
 endif
+endif
 
 LIBCAP_MAKE_FLAGS = \
 	BUILD_CC="$(HOSTCC)" \
-- 
2.14.1



More information about the buildroot mailing list