From: Arvin Schnell Date: Thu, 23 Mar 2023 18:12:12 +0000 (+0100) Subject: - link with libselinux if selinux is enabled X-Git-Tag: v0.10.5~31^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F794%2Fhead;p=thirdparty%2Fsnapper.git - link with libselinux if selinux is enabled --- diff --git a/snapper/Makefile.am b/snapper/Makefile.am index efc5d65f..0a78c4ea 100644 --- a/snapper/Makefile.am +++ b/snapper/Makefile.am @@ -32,7 +32,6 @@ libsnapper_la_SOURCES = \ SnapperDefines.h \ Version.h - if ENABLE_BTRFS libsnapper_la_SOURCES += \ Btrfs.cc Btrfs.h \ @@ -71,6 +70,9 @@ if ENABLE_BTRFS libsnapper_la_CPPFLAGS += $(LIBBTRFSUTIL_CFLAGS) libsnapper_la_LIBADD += $(LIBBTRFSUTIL_LIBS) endif +if ENABLE_SELINUX +libsnapper_la_LIBADD += -lselinux +endif pkgincludedir = $(includedir)/snapper