0003-libcap-Makefile-disable-building-installing-shared-l.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From b7ca9dd97bbd9657c541f749ea6baf1f45b7c98a Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Wed, 9 Sep 2020 22:22:18 +0200
  4. Subject: [PATCH] libcap/Makefile: disable building/installing shared
  5. library when DYNAMIC is empty
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  7. ---
  8. libcap/Makefile | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/libcap/Makefile b/libcap/Makefile
  11. index 81b089e..dfd4dea 100644
  12. --- a/libcap/Makefile
  13. +++ b/libcap/Makefile
  14. @@ -22,7 +22,7 @@ MAJLIBNAME=$(LIBNAME).$(VERSION)
  15. MINLIBNAME=$(MAJLIBNAME).$(MINOR)
  16. GPERF_OUTPUT = _caps_output.gperf
  17. -all: $(MINLIBNAME) $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
  18. +all: $(if $(DYNAMIC),$(MINLIBNAME)) $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
  19. pcs: libcap.pc libpsx.pc
  20. @@ -93,7 +93,7 @@ cap_test: cap_test.c libcap.h
  21. test: cap_test
  22. ./cap_test
  23. -install: install-shared install-static
  24. +install: $(if $(DYNAMIC),install-shared) install-static
  25. install-common: pcs
  26. mkdir -p -m 0755 $(FAKEROOT)$(INCDIR)/sys
  27. --
  28. 2.26.2