From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A32301B16F for ; Fri, 2 Feb 2018 10:08:19 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 40833208A1; Fri, 2 Feb 2018 04:08:19 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 02 Feb 2018 04:08:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=4INLBTDmA9WNLxVoLU2kTtjefA A01ho0CV4GRMLTou8=; b=BpBV80nYWz0YjZeSV4EA/2BwP9uqPUUigCDAuhPdjM aKExXqTtSquKih5fUT3e6xIXNRjli7PFr6MeJK15kc5elTsX8mJlRiz/MXHfC2lQ rjlZs7ABScggFvK/K11oaVwFr1p5+PZxFW6FfIPc8ZjQjEwLhmgYV3WhYZTxIhec 4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=4INLBT DmA9WNLxVoLU2kTtjefAA01ho0CV4GRMLTou8=; b=jniOXkob1YNM9pz/4W4UzR aEErip0JBuajoJHy7E0z967z272sHwaijXkxSTmbi68bsUSKkKDaOUT8xAtRCFAs pF8KVQnhhBjD+9FOdyj7VpAySr0AOaouUtVSJk27aaoTkDbL+D+MmBSplxK32ckK C/a4U8kUjz6YRgg2fvPxLi6QBCfev4Ycv9d6adEwSjreqrbmISK+uEvITw3N9GZo 1Q/uNcsf+gbYZu255NGa2YS90XHl1+cg7QavPLNAIPsPgxfcnrknXdoFlwLOMddu GBOV0o19pDnMSjLRYkflVhnmWJChrgfhnwCfKQEWJI4Dr00txO5+qB2Uj4KwSvtQ == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E33AF240B6; Fri, 2 Feb 2018 04:08:18 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, John McNamara Date: Fri, 02 Feb 2018 10:07:31 +0100 Message-ID: <7264515.xsl8mJ6Wl0@xps> In-Reply-To: References: <20171216001350.90436-1-ferruh.yigit@intel.com> <9672510.c4JnJd36Tx@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mk: add debug target X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 09:08:19 -0000 01/02/2018 18:04, Ferruh Yigit: > On 1/30/2018 11:40 PM, Thomas Monjalon wrote: > > 16/12/2017 01:13, Ferruh Yigit: > >> Add "debug" target to build library with debug symbols and optimization > >> disabled. > >> > >> This is shortcut for exiting method to compile with > >> EXTRA_CFLAGS="-O0 -g3" > >> > >> Signed-off-by: Ferruh Yigit > >> --- > >> + debug build library with debug symbols > > [...] > >> +.PHONY: debug > >> +debug: > >> + $(Q)$(MAKE) EXTRA_CFLAGS="-O0 -g3" > > > > This target will override any EXTRA_CFLAGS, > > so we cannot build in debug mode with more extra cflags this way. > > How about EXTRA_CFLAGS+="-O0 -g3" > which is not override EXTRA_CFLAGS but merge them, can be ok? I am not sure it works. Have you tested?