libcap-2.45-makefile.patch 739 B

12345678910111213141516171819202122
  1. diff -ruN a/Make.Rules b/Make.Rules
  2. --- a/Make.Rules 2020-11-03 02:38:59.000000000 +0100
  3. +++ b/Make.Rules 2020-11-06 16:55:10.149893784 +0100
  4. @@ -37,7 +37,7 @@
  5. # Target directories
  6. MANDIR=$(man_prefix)/man
  7. -SBINDIR=$(exec_prefix)/sbin
  8. +SBINDIR=$(exec_prefix)/bin
  9. INCDIR=$(inc_prefix)/include
  10. LIBDIR=$(lib_prefix)/$(lib)
  11. PKGCONFIGDIR=$(LIBDIR)/pkgconfig
  12. @@ -79,7 +79,7 @@
  13. SYSTEM_HEADERS = /usr/include
  14. INCS=$(topdir)/libcap/include/sys/capability.h
  15. LDFLAGS += -L$(topdir)/libcap
  16. -CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
  17. +CFLAGS += $(CPPFLAGS) -Dlinux $(WARNINGS) $(DEBUG)
  18. INDENT := $(shell if [ -n "$$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
  19. # SHARED tracks whether or not the SHARED libraries (libcap.so,