]> err.no Git - systemd/commitdiff
libudev: link against selinux if needed
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 29 Aug 2008 18:48:25 +0000 (20:48 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 29 Aug 2008 18:48:25 +0000 (20:48 +0200)
udev/lib/Makefile.am

index a1fd77b87b0628cf82d2e69a53a003b4e22114c0..430472735be481efb1bd37347d1cfb0d9ca47b3b 100644 (file)
@@ -31,18 +31,25 @@ libudev_la_SOURCES =\
        ../udev_utils_string.c \
        ../udev_utils_file.c \
        ../udev_sysfs.c \
-       ../udev_node.c \
        ../udev_device.c \
        ../udev_config.c \
-       ../udev_rules.c \
-       ../udev_rules_parse.c \
        ../udev_db.c \
        ../udev_sysdeps.c
 
+if USE_SELINUX
+libudev_la_SOURCES += \
+       ../udev_selinux.c
+endif
+
 libudev_la_LDFLAGS = \
        -version-info $(LIBUDEV_LT_CURRENT):$(LIBUDEV_LT_REVISION):$(LIBUDEV_LT_AGE) \
        -export-symbols $(top_srcdir)/udev/lib/exported_symbols
 
+if USE_SELINUX
+libudev_la_LIBADD = \
+       -lselinux
+endif
+
 pkgconfigdir = $(prefix)/$(libdir_name)/pkgconfig
 pkgconfig_DATA = libudev.pc