aboutsummaryrefslogtreecommitdiff
path: root/package/libcap/libcap.mk
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-05-09 10:43:05 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-12 09:02:21 +0200
commit7984f2d97b4271c14e0922ef22027edaedd78e59 (patch)
tree8c0a35620f15d55f28364dd09fb60fee5ae179a9 /package/libcap/libcap.mk
parente7f72298a6c88b42a996962027f4f83a07713f26 (diff)
downloadbuildroot-7984f2d97b4271c14e0922ef22027edaedd78e59.tar.gz
buildroot-7984f2d97b4271c14e0922ef22027edaedd78e59.tar.bz2
libcap: only install shared version
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@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libcap/libcap.mk')
-rw-r--r--package/libcap/libcap.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
index 48c2cb3456..a947fa0686 100644
--- a/package/libcap/libcap.mk
+++ b/package/libcap/libcap.mk
@@ -18,6 +18,9 @@ HOST_LIBCAP_DEPENDENCIES = host-gperf
ifeq ($(BR2_STATIC_LIBS),y)
LIBCAP_MAKE_TARGET = libcap.a libcap.pc
LIBCAP_MAKE_INSTALL_TARGET = install-static
+else ifeq ($(BR2_SHARED_LIBS),y)
+LIBCAP_MAKE_TARGET = all
+LIBCAP_MAKE_INSTALL_TARGET = install-shared
else
LIBCAP_MAKE_TARGET = all
LIBCAP_MAKE_INSTALL_TARGET = install