From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v8 1/2] mk:Simplify the ifdefs in rte.app.mk Date: Wed, 13 May 2015 15:56:23 +0200 Message-ID: <55535807.5070900@6wind.com> References: <1431386066-6147-1-git-send-email-keith.wiles@intel.com> <1431457872-10345-1-git-send-email-keith.wiles@intel.com> <5553000D.3030004@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: "Wiles, Keith" , "dev@dpdk.org" Return-path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id CD9655694 for ; Wed, 13 May 2015 15:56:27 +0200 (CEST) Received: by wgbhc8 with SMTP id hc8so10921762wgb.3 for ; Wed, 13 May 2015 06:56:27 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Keith, On 05/13/2015 03:17 PM, Wiles, Keith wrote: >>> >>> endif # ifeq ($(NO_AUTOLIBS),) >>> >>> -LDLIBS += $(CPU_LDLIBS) >>> +LDLIBS += $(_LDLIBS-y) $(EXTRA_LDLIBS) >>> >> >> As discussed in the previous mail, all things that are about >> EXTRA_LDLIBS should be moved in the second patch. Therefore, >> the title of the second patch should not be "update doc...", but >> something like "mk: introduce EXTRA_LDLIBS...". >> >> By the way, I missed that before, but it seems that your >> patch removes CPU_LDLIBS, I don't think it's correct. > > I found no reference to CPU_LDLIBS in the docs or code other then then one > line. We now have EXTRA_LDLIBS for the command line, right? Yes, but your patch says "simplify the ifdef". Removing a variable (even if it is not used) in this patch is not a good idea. Now, the CPU_CFLAGS, CPU_LDFLAGS, CPU_LDLIBS can be defined internally by the rte.vars.mk in mk/arch/ or mk/machine/ directories. Regards, Olivier