0001-libcap-Makefile-disable-building-installing-shared-l.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. [slightly manual modifications that patch still applies for libcap 2.44]
  8. Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
  9. ---
  10. libcap/Makefile | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/libcap/Makefile b/libcap/Makefile
  13. index 81b089e..dfd4dea 100644
  14. --- a/libcap/Makefile
  15. +++ b/libcap/Makefile
  16. @@ -22,7 +22,7 @@ MAJLIBNAME=$(LIBNAME).$(VERSION)
  17. MINLIBNAME=$(MAJLIBNAME).$(MINOR)
  18. GPERF_OUTPUT = _caps_output.gperf
  19. -all: $(MINLIBNAME) $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
  20. +all: $(if $(DYNAMIC),$(MINLIBNAME)) $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
  21. pcs: libcap.pc libpsx.pc
  22. @@ -93,7 +93,7 @@ cap_test: cap_test.c libcap.h
  23. test: cap_test
  24. ./cap_test
  25. -install: install-static install-shared
  26. +install: $(if $(DYNAMIC),install-shared) install-static
  27. install-common: pcs
  28. mkdir -p -m 0755 $(FAKEROOT)$(INCDIR)/sys
  29. --
  30. 2.26.2