summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJiri Popelka <jpopelka@redhat.com>2012-01-16 15:34:09 +0100
committerJiri Popelka <jpopelka@redhat.com>2012-01-16 15:34:09 +0100
commit8509a38d8121ed31df53da30f8b93c31af60b079 (patch)
tree4a0673c331c3cd38f0a85bc0fb1ffcbea591c794 /Makefile
parent064568d197716806b89d4394beb01b6e2e9701ef (diff)
downloadnet-tools-8509a38d8121ed31df53da30f8b93c31af60b079.tar.gz
net-tools-8509a38d8121ed31df53da30f8b93c31af60b079.tar.bz2
net-tools-8509a38d8121ed31df53da30f8b93c31af60b079.zip
new option for nestat, -Z shows SELinux context
Patch by Dan Walsh.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8f61677..b2ea629 100644
--- a/Makefile
+++ b/Makefile
@@ -114,6 +114,11 @@ endif
NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
+ifeq ($(HAVE_SELINUX),1)
+LDFLAGS += -lselinux
+CFLAGS += -DHAVE_SELINUX
+endif
+
CPPFLAGS += -I. -I$(TOPDIR)/include -I$(NET_LIB_PATH)
LDFLAGS += -L$(NET_LIB_PATH)