From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: Re: [PATCH 0/4] Fix build issues with CONFIG_RTE_BUILD_COMBINE_LIBS=y Date: Fri, 3 Oct 2014 11:17:13 -0700 Message-ID: <20141003181713.GC1741@mhcomputing.net> References: <1412265386-26291-1-git-send-email-sergio.gonzalez.monroy@intel.com> <2041475.WSUx3LgNfR@xps13> <20141003081019.GA28988@sivswdev02.ir.intel.com> <2274825.SfVmqUQfpO@xps13> <20141003113234.GB24059@hmsreliant.think-freely.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org To: Neil Horman Return-path: Content-Disposition: inline In-Reply-To: <20141003113234.GB24059-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Fri, Oct 03, 2014 at 07:32:34AM -0400, Neil Horman wrote: > This makes good sense to me. A single archive is just easier in the static > case, since the resulting binary will strip out unused code anyway, and multiple > libraries are needed in the shared case so that we don't wind up having to load > more code than is needed at run time. > > Neil This assertion is not true. Because the DPDK doesn't work if you don't specify the whole-archive link option. Which explicitly prevents stripping out any "unused code". Otherwise your PMD's will refuse to initialize. This along with backward compatibility is why I was advising to build the full static library and the sublibraries so it will just work for everybody by default. Matthew.