From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] mk: move libs that don't dependent PMD libs out of whole archive Date: Thu, 09 Feb 2017 22:48:41 +0100 Message-ID: <2952546.ox9gadXyFB@xps13> References: <20170131115950.25660-1-ferruh.yigit@intel.com> <20170131150132.7056-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id 2B85AFAE7 for ; Thu, 9 Feb 2017 22:48:43 +0100 (CET) Received: by mail-wr0-f179.google.com with SMTP id k90so93436156wrc.3 for ; Thu, 09 Feb 2017 13:48:43 -0800 (PST) In-Reply-To: <20170131150132.7056-1-ferruh.yigit@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" 2017-01-31 15:01, Ferruh Yigit: > During app build with static library, some libraries wrapped with > --whole-archive compiler flag. > > Wrapped libraries are mainly PMD libraries, this is required because PMD > APIs not called directly but run through callbacks registered via > constructor functions. > > Also some set of libraries, depends to the PMD libraries needs this, > because of same reason. > > All the libraries used by a plugin (any driver) must be in > --whole-archive to ensure that every symbols will be available for the > plugin. > > But other libraries can be out of this flag, and this saves some bytes > in final binary. > > Signed-off-by: Ferruh Yigit > Acked-by: Thomas Monjalon Applied, thanks