From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wen Congyang Subject: [PATCH v2] Fix building error Date: Thu, 15 Jan 2015 17:33:27 +0800 Message-ID: <54B78967.7090604@cn.fujitsu.com> References: <1417435968.29138.19.camel@citrix.com> <1417443665-30809-1-git-send-email-euan.harris@citrix.com> <54B73658.6030309@cn.fujitsu.com> <20150115075746.GA22946@aepfle.de> <54B7829A.4080902@cn.fujitsu.com> <20150115092132.GA15492@aepfle.de> <54B78828.3000509@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54B78828.3000509@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Euan Harris , Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Signed-off-by: Wen Congyang --- tools/Rules.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/Rules.mk b/tools/Rules.mk index 962a743..0a54bf1 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -57,6 +57,8 @@ SHLIB_libxenvchan = -Wl,-rpath-link=$(XEN_LIBVCHAN) ifeq ($(debug),y) # Disable optimizations and enable debugging information for macros CFLAGS += -O0 -g3 +# _FORTIFY_SOURCE requires compiling with optimization +CFLAGS += -Wp,-U_FORTIFY_SOURCE endif LIBXL_BLKTAP ?= $(CONFIG_BLKTAP2) -- 2.1.0