From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 0 of 4] tools: build system fix indirect library usage and --as-needed Date: Tue, 15 Mar 2011 16:16:03 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org This series arranges for all libraries and binaries to only link against those shared libraries which they use directly, relying on the dynamic linker to do the right thing for indirect dependencies. In order to do this I've pushed the tools/blktap2 UUID abstraction down into libvhd and out of line to encapsulate all knowledge regarding this abstraction into libvhd rather than expecting the users of the library to do the right thing. Having done this supporting --as-needed becomes a pretty trivial case of ensuring links lines have the libraries in the correct order. Tested by: * running xl, start/stop a guest * running xend, start/stop a guest * manually importing each python extension and calling whatever initialisation function I could find.