summaryrefslogtreecommitdiff
path: root/udev/lib/Makefile.am
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-08-29 20:48:25 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-08-29 20:48:25 +0200
commitaa1f5304b0f2eb8c2c645eba155baa74ebfecdcb (patch)
tree226b6db0aa3f26a6988b82e7b8f3a9d1a5dc105f /udev/lib/Makefile.am
parentd46f37fdee02ab5f906518b3c08886cd0eb0a6c8 (diff)
libudev: link against selinux if needed
Diffstat (limited to 'udev/lib/Makefile.am')
-rw-r--r--udev/lib/Makefile.am13
1 files changed, 10 insertions, 3 deletions
diff --git a/udev/lib/Makefile.am b/udev/lib/Makefile.am
index a1fd77b87b..430472735b 100644
--- a/udev/lib/Makefile.am
+++ b/udev/lib/Makefile.am
@@ -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