summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-28 00:52:20 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:31 -0700
commit8481f8ce2bd2b19ebcf3cb96ac6825093f626b0f (patch)
tree9311b5e7fe1b85b1d5645d1b3dd4a4cfc0ab7737 /Makefile
parent89067448b935d580496555f257dd5512c4c39098 (diff)
[PATCH] Add initial SELinux support for udev
Based on a patch from Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d58569f581..b24e147838 100644
--- a/Makefile
+++ b/Makefile
@@ -227,6 +227,14 @@ ifeq ($(USE_DBUS), true)
OBJS += udev_dbus.o
endif
+# if USE_SELINUX is enabled, then we do not strip or optimize
+ifeq ($(strip $(USE_SELINUX)),true)
+ CFLAGS += -DUSE_SELINUX
+ OBJS += udev_selinux.o
+ LIB_OBJS += -lselinux
+endif
+
+
# header files automatically generated
GEN_HEADERS = udev_version.h