From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1] mk: allow use of toolchain cflags Date: Mon, 06 Nov 2017 22:07:30 +0100 Message-ID: <2369574.SFH6e9u1pT@xps> References: <1509702003-70630-1-git-send-email-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, bruce.richardson@intel.com To: David Hunt , Vipin Varghese Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 8981E1B2B7 for ; Mon, 6 Nov 2017 22:07:32 +0100 (CET) In-Reply-To: <1509702003-70630-1-git-send-email-david.hunt@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 03/11/2017 10:40, David Hunt: > From: Vipin Varghese > > with 'export TOOLCHAIN_CFLAGS' the values are > not inherited throuhout make system. The change > appends the user defined cflags. Why do you want to use export from the shell environment? The standard way of overriding a variable with make, is to specify a value on the make command line. [...] > -TOOLCHAIN_ASFLAGS = > -TOOLCHAIN_CFLAGS = > -TOOLCHAIN_LDFLAGS = > +TOOLCHAIN_ASFLAGS += > +TOOLCHAIN_CFLAGS += > +TOOLCHAIN_LDFLAGS += There is nothing to append here. It is here only for documentation purpose. If you really want to take environment value into account, you can just comment this assignment or use ?= operator. Note that you can also use EXTRA_CFLAGS. I would be in favor of removing these variables. We have too many variables.