0002-erofs-utils-fuse-fix-linking-when-using-with-selinux.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. From f1f9659e98ea925a100e50332309955f5b2b4234 Mon Sep 17 00:00:00 2001
  2. From: David Michael <fedora.dm0@gmail.com>
  3. Date: Thu, 10 Dec 2020 21:29:43 -0500
  4. Subject: erofs-utils: fuse: fix linking when using --with-selinux
  5. The libselinux functions selabel_open and selabel_close are called
  6. by lib/config.c, so include libselinux in CFLAGS and LIBS to fix
  7. building erofsfuse.
  8. Link: https://lore.kernel.org/r/87360dnkh4.fsf@gmail.com
  9. Signed-off-by: David Michael <fedora.dm0@gmail.com>
  10. Reviewed-and-tested-by: Li Guifu <bluce.lee@aliyun.com>
  11. Signed-off-by: Gao Xiang <hsiangkao@aol.com>
  12. ---
  13. fuse/Makefile.am | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/fuse/Makefile.am b/fuse/Makefile.am
  16. index f14f6fd..e7757bc 100644
  17. --- a/fuse/Makefile.am
  18. +++ b/fuse/Makefile.am
  19. @@ -5,6 +5,6 @@ AUTOMAKE_OPTIONS = foreign
  20. bin_PROGRAMS = erofsfuse
  21. erofsfuse_SOURCES = dir.c main.c
  22. erofsfuse_CFLAGS = -Wall -Werror -I$(top_srcdir)/include
  23. -erofsfuse_CFLAGS += -DFUSE_USE_VERSION=26 ${libfuse_CFLAGS}
  24. -erofsfuse_LDADD = $(top_builddir)/lib/liberofs.la ${libfuse_LIBS} ${liblz4_LIBS}
  25. +erofsfuse_CFLAGS += -DFUSE_USE_VERSION=26 ${libfuse_CFLAGS} ${libselinux_CFLAGS}
  26. +erofsfuse_LDADD = $(top_builddir)/lib/liberofs.la ${libfuse_LIBS} ${liblz4_LIBS} ${libselinux_LIBS}
  27. --
  28. cgit 1.2.3-1.el7