selinux October 2012 archive
Main Archive Page > Month Archives  > selinux archives
selinux: [PATCH 03/15] policycoreutils: Allow overriding CFLAGS

[PATCH 03/15] policycoreutils: Allow overriding CFLAGS in setfiles and sestatus Makefiles

From: Laurent Bigonville <bigon_at_nospam>
Date: Mon Oct 01 2012 - 16:31:45 GMT
To: selinux@tycho.nsa.gov

From: Simon Ruderich <simon@ruderich.org>

This is required to be able to pass hardening flags in Debian.
--- policycoreutils/sestatus/Makefile | 2 +- policycoreutils/setfiles/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/policycoreutils/sestatus/Makefile b/policycoreutils/sestatus/Makefile index c5db7a3..c04ff00 100644 --- a/policycoreutils/sestatus/Makefile +++ b/policycoreutils/sestatus/Makefile @@ -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) diff --git a/policycoreutils/setfiles/Makefile b/policycoreutils/setfiles/Makefile index 4b44b3c..98f4f7d 100644 --- a/policycoreutils/setfiles/Makefile +++ b/policycoreutils/setfiles/Makefile @@ -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) -- 1.7.10.4 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.