]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libcap: only install shared version
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 9 May 2018 08:43:05 +0000 (10:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 12 May 2018 07:02:21 +0000 (09:02 +0200)
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>
package/libcap/libcap.mk

index 48c2cb345693e4af657aba5ce519197c5815e59d..a947fa068634a51f4985e55ecb814c57d5772616 100644 (file)
@@ -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