From: Ian Jackson Subject: Re: [PATCH] tools: work around collision of -O0 and -D_FORTIFY_SOURCE Date: Thu, 5 Feb 2015 16:56:34 +0000 Message-ID: <21715.41154.597589.665860@mariner.uk.xensource.com> References: <20150205154753.GF3823@citrix.com> <1423154167-22453-1-git-send-email-ian.jackson@eu.citrix.com> <54D3ADDF020000780005D7A1@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJPjX-0001YA-2G for xen-devel@lists.xenproject.org; Thu, 05 Feb 2015 16:56:51 +0000 In-Reply-To: <54D3ADDF020000780005D7A1@mail.emea.novell.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: Jan Beulich Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Don Slutz , Euan Harris , xen-devel List-Id: xen-devel@lists.xenproject.org Jan Beulich writes ("Re: [PATCH] tools: work around collision of -O0 and -D_FORTIFY_SOURCE"): > On 05.02.15 at 17:36, wrote: > > +AC_DEFUN([AX_CHECK_PYTHON_FORTIFY_NOOPT], [ > > + AC_CACHE_CHECK([whether Python setup.py brokenly enables -D_FORTIFY_SOURCE], > > I guess the people having added that would not like to see this > called "brokenly". I think it is correct, and that it is fair to make such a criticism in a configure script. If this is too rude I guess we could say `unfortunately'. > > --- 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. Ian.