From 164a5be04ebe59c9b5e0df97faa2543b8af2d7e8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 27 Mar 2006 23:00:32 +0000 Subject: [PATCH] Patch from Jan Kiszka: In case the libselinux development installation is not located at its default location, this patch allows to override the path via SELINUX_INC and SELINUX_LIB when invoking make. --- Rules.mak | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rules.mak b/Rules.mak index 6bf91b2d6..a70ef8cc5 100644 --- a/Rules.mak +++ b/Rules.mak @@ -210,7 +210,11 @@ endif ifeq ($(strip $(CONFIG_SELINUX)),y) - LIBRARIES += -lselinux + SELINUX_INC ?= /usr/include + SELINUX_LIB ?= /usr/lib + CFLAGS := -I$(SELINUX_INC) $(CFLAGS) + LDFLAGS := -L$(SELINUX_LIB) $(LDFLAGS) + LIBRARIES += -lselinux endif ifeq ($(strip $(PREFIX)),) -- 2.25.1