From: "Jan Beulich" Subject: Re: [PATCH] tools: work around collision of -O0 and -D_FORTIFY_SOURCE Date: Thu, 05 Feb 2015 17:01:32 +0000 Message-ID: <54D3AFFC020000780005D7C2@mail.emea.novell.com> References: <20150205154753.GF3823@citrix.com> <1423154167-22453-1-git-send-email-ian.jackson@eu.citrix.com> <54D3ADDF020000780005D7A1@mail.emea.novell.com> <21715.41154.597589.665860@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJPo6-0001sW-LD for xen-devel@lists.xenproject.org; Thu, 05 Feb 2015 17:01:34 +0000 In-Reply-To: <21715.41154.597589.665860@mariner.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Don Slutz , Euan Harris , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 05.02.15 at 17:56, wrote: >> > --- a/tools/Rules.mk >> > +++ b/tools/Rules.mk >> > @@ -56,7 +56,7 @@ SHLIB_libxenvchan = -Wl,-rpath-link=$(XEN_LIBVCHAN) >> > >> > ifeq ($(debug),y) >> > # Disable optimizations and enable debugging information for macros >> > -CFLAGS += -O0 -g3 >> > +CFLAGS += -O0 -g3 $(PY_NOOPT_CFLAGS) >> >> Why would you do this for all of the tools build rather than just the >> python components? > > You're right. This should be something like: > > CFLAGS += -O0 -g3 > +PY_CFLAGS += $(PY_NOOPT_CFLAGS) I'll adjust this before testing. Thanks for the quick turnaround, btw! Jan