libselinux: drop DISABLE_BOOL=y option

Build option DISABLE_BOOL=y is not being used, and is broken, drop it.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
This commit is contained in:
William Roberts 2016-09-28 11:26:09 -04:00 committed by Stephen Smalley
parent 42ab513703
commit fba72330dd
4 changed files with 2 additions and 17 deletions

View file

@ -2,17 +2,13 @@ SUBDIRS = src include utils man
DISABLE_SETRANS ?= n
DISABLE_RPM ?= n
DISABLE_BOOL ?= n
ifeq ($(DISABLE_BOOL),y)
EMFLAGS+= -DDISABLE_BOOL
endif
ifeq ($(DISABLE_RPM),y)
EMFLAGS+= -DDISABLE_RPM
endif
ifeq ($(DISABLE_SETRANS),y)
EMFLAGS+= -DDISABLE_SETRANS
endif
export DISABLE_SETRANS DISABLE_RPM DISABLE_BOOL EMFLAGS
export DISABLE_SETRANS DISABLE_RPM EMFLAGS
USE_PCRE2 ?= n
ifeq ($(USE_PCRE2),y)

View file

@ -41,12 +41,8 @@ LIBSO=$(TARGET).$(LIBVERSION)
AUDIT2WHYLOBJ=$(PYPREFIX)audit2why.lo
AUDIT2WHYSO=$(PYPREFIX)audit2why.so
ifeq ($(DISABLE_BOOL),y)
UNUSED_SRCS+=booleans.c
endif
GENERATED=$(SWIGCOUT) $(SWIGRUBYCOUT) selinuxswig_python_exception.i
SRCS= $(filter-out $(UNUSED_SRCS) $(GENERATED) audit2why.c, $(sort $(wildcard *.c)))
SRCS= $(filter-out $(GENERATED) audit2why.c, $(sort $(wildcard *.c)))
MAX_STACK_SIZE=32768

View file

@ -256,7 +256,6 @@ checkbool:
}
}
#ifndef DISABLE_BOOL
if (preservebools) {
int *values, len, i;
char **names;
@ -279,7 +278,6 @@ checkbool:
(void)genbools(data, size,
(char *)selinux_booleans_path());
}
#endif
}

View file

@ -36,11 +36,6 @@ sefcontext_compile: sefcontext_compile.o ../src/regex.o
selinux_restorecon: LDLIBS += -lsepol
ifeq ($(DISABLE_BOOL),y)
UNUSED_TARGETS+=getsebool togglesebool
endif
TARGETS:= $(filter-out $(UNUSED_TARGETS), $(TARGETS))
all: $(TARGETS)
install: all