From: Rob Landley Date: Mon, 27 Mar 2006 23:00:32 +0000 (-0000) Subject: Patch from Jan Kiszka: In case the libselinux development installation is not X-Git-Tag: 1_1_0~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=164a5be04ebe59c9b5e0df97faa2543b8af2d7e8;p=oweals%2Fbusybox.git 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. --- 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)),)