summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorRob Landley2006-03-27 23:00:32 +0000
committerRob Landley2006-03-27 23:00:32 +0000
commit164a5be04ebe59c9b5e0df97faa2543b8af2d7e8 (patch)
treecd878cfeccc8cc303777074364ab1d453eb12b6f /Rules.mak
parent0949d306388937e73f1f1f1686997d477fea33ef (diff)
downloadbusybox-164a5be04ebe59c9b5e0df97faa2543b8af2d7e8.zip
busybox-164a5be04ebe59c9b5e0df97faa2543b8af2d7e8.tar.gz
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.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 6bf91b2..a70ef8c 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)),)