From patchwork Thu Aug 4 12:44:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Bigonville X-Patchwork-Id: 9263579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D7E976048B for ; Thu, 4 Aug 2016 12:45:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C75DF28405 for ; Thu, 4 Aug 2016 12:45:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBF5A28406; Thu, 4 Aug 2016 12:45:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from emsm-gh1-uea11.nsa.gov (smtp.nsa.gov [8.44.101.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A7E7728409 for ; Thu, 4 Aug 2016 12:45:14 +0000 (UTC) Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 04 Aug 2016 12:45:09 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u74CiLWh003619; Thu, 4 Aug 2016 08:44:31 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u74CiEWb248690 for ; Thu, 4 Aug 2016 08:44:14 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u74CiFrG003617 for ; Thu, 4 Aug 2016 08:44:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1C1CQAcN6NX/2OteVtdKQEBBAEBgxSBC0ekDQkBAQaSboQgh11MAQEBAQEBXieFJQEBOC8fTjSINQGuBoUqAQEFi1EIhWKJJXyEch2ZOY8CAo88ApAmAlSBTYIvbIYIgUUBAQE X-IPAS-Result: A1C1CQAcN6NX/2OteVtdKQEBBAEBgxSBC0ekDQkBAQaSboQgh11MAQEBAQEBXieFJQEBOC8fTjSINQGuBoUqAQEFi1EIhWKJJXyEch2ZOY8CAo88ApAmAlSBTYIvbIYIgUUBAQE X-IronPort-AV: E=Sophos;i="5.28,470,1464667200"; d="scan'208";a="5624338" Received: from emsm-gh1-uea10.corp.nsa.gov (HELO emsm-gh1-uea10.nsa.gov) ([10.208.41.36]) by goalie.tycho.ncsc.mil with ESMTP; 04 Aug 2016 08:44:50 -0400 Received: from anor.bigon.be ([91.121.173.99]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Aug 2016 12:44:12 +0000 Received: from anor.bigon.be (localhost.localdomain [127.0.0.1]) by anor.bigon.be (Postfix) with ESMTP id F380C1A1AE for ; Thu, 4 Aug 2016 14:44:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=key1; t=1470314647; x=1472129048; bh=OtKRP dxZfF7cHwqxJhk5VJEWtEWyv28HoT49Nbig+Os=; b=W2+soqKtg/ZLKl1DgQRe5 Wc//axK4HK7CgZ47cKxQgtzgC1La60vKqJZVUTvbKypajfJzy5QMWzVOVCupcGTl zS9KyEdX0GM3UTselX6SgB5bAH1/gQVsyTglTxT/kB7viq2oyzZ+wEeZtgOupF0W NWop+bAB0yIZ1uMsN522HA= X-Virus-Scanned: Debian amavisd-new at bigon.be Received: from anor.bigon.be ([127.0.0.1]) by anor.bigon.be (anor.bigon.be [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TmVXvtSJsjIR for ; Thu, 4 Aug 2016 14:44:07 +0200 (CEST) Received: from valinor.bigon.be (unknown [193.53.238.201]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bigon) by anor.bigon.be (Postfix) with ESMTPSA id CA1201A1A1 for ; Thu, 4 Aug 2016 14:44:06 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 61f41 by valinor.bigon.be (DragonFly Mail Agent v0.11); Thu, 04 Aug 2016 14:44:06 +0200 From: Laurent Bigonville To: selinux@tycho.nsa.gov Subject: [PATCH] libselinux/utils/Makefile: Fix in tree compilation Date: Thu, 4 Aug 2016 14:44:06 +0200 Message-Id: <1470314646-29805-1-git-send-email-bigon@debian.org> X-Mailer: git-send-email 2.8.1 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP From: Laurent Bigonville Some tools need the sepol/sepol.h header --- libselinux/utils/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile index cf7af52..8497cb4 100644 --- a/libselinux/utils/Makefile +++ b/libselinux/utils/Makefile @@ -3,6 +3,7 @@ PREFIX ?= $(DESTDIR)/usr LIBDIR ?= $(PREFIX)/lib USRBINDIR ?= $(PREFIX)/sbin SBINDIR ?= $(DESTDIR)/sbin +INCLUDEDIR ?= $(PREFIX)/include MAX_STACK_SIZE=8192 CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissing-include-dirs \ @@ -23,7 +24,7 @@ CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissi -fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time \ -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const \ -Werror -Wno-aggregate-return -Wno-redundant-decls -override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS) +override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE $(EMFLAGS) LDLIBS += -L../src -lselinux -L$(LIBDIR) TARGETS=$(patsubst %.c,%,$(wildcard *.c))