From: "Jan Beulich" Subject: Re: [PATCH] tools: work around collision of -O0 and -D_FORTIFY_SOURCE Date: Fri, 06 Feb 2015 08:19:11 +0000 Message-ID: <54D4870F020000780005D97D@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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJe87-0003bx-CB for xen-devel@lists.xenproject.org; Fri, 06 Feb 2015 08:19:11 +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: > Jan Beulich writes ("Re: [PATCH] tools: work around collision of -O0 and >> > --- 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) > > and including PY_CFLAGS in tools/python/Makefile etc. Attached the patch I used for testing. While it works okay for me, I guess the configure part will need further taking care of the -Wp,-D... variant Don is seeing. Jan