[systemd-devel] [PATCH 1/2] udev: avoid building selinux parts without have_selinux

Dave Reisner dreisner at archlinux.org
Tue Apr 3 21:22:20 PDT 2012


---
 Makefile.am |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index d83a5a1..2b04142 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1152,8 +1152,12 @@ libudev_private_la_SOURCES =\
 	$(libudev_la_SOURCES) \
 	src/udev/libudev-util-private.c \
 	src/udev/libudev-device-private.c \
-	src/udev/libudev-queue-private.c \
+	src/udev/libudev-queue-private.c
+
+if HAVE_SELINUX
+libudev_private_la_SOURCES +=\
 	src/udev/libudev-selinux-private.c
+endif
 
 libudev_private_la_LIBADD = \
 	$(SELINUX_LIBS)
-- 
1.7.9.6



More information about the systemd-devel mailing list