policycoreutils: Allow overriding CFLAGS in setfiles and sestatus Makefiles

This is required to be able to pass hardening flags in Debian.
This commit is contained in:
Simon Ruderich 2013-05-10 14:45:11 +02:00 committed by Stephen Smalley
parent d1c47e7d5a
commit 002280edbb
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ MANDIR = $(PREFIX)/share/man
ETCDIR ?= $(DESTDIR)/etc
LIBDIR ?= $(PREFIX)/lib
CFLAGS = -Werror -Wall -W
CFLAGS ?= -Werror -Wall -W
override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64
LDLIBS = -lselinux -L$(LIBDIR)

View File

@ -8,7 +8,7 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null)
PROGRESS_STEP=$(shell grep "^\#define STAR_COUNT" restore.h | awk -S '{ print $$3 }')
ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }')
CFLAGS = -g -Werror -Wall -W
CFLAGS ?= -g -Werror -Wall -W
override CFLAGS += -I$(PREFIX)/include
LDLIBS = -lselinux -lsepol -L$(LIBDIR)