From: Ian Jackson Subject: Re: libxl: link error Date: Fri, 13 Aug 2010 15:15:54 +0100 Message-ID: <19557.21402.835289.898925@mariner.uk.xensource.com> References: <201008131057.21529.Christoph.Egger@amd.com> <19557.14995.499107.257870@mariner.uk.xensource.com> <201008131537.09037.Christoph.Egger@amd.com> <201008131611.55178.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201008131611.55178.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("Re: [Xen-devel] libxl: link error"): > It is definitely something else. The tools/libxl/Makefile specifies -fPIC. > Maybe libxc must be compiled with -fPIC, too? We don't appear to have SHLIB_CFLAGS. I think that's where -fPIC should go, and it should be used everwhere where we link the objects with SHLIB_LDFLAGS. If we do that then the .o files in the .a's will be -fPIC too but that's a price worth paying. I guess this might be fallout from Olaf's LDFLAGS/LIBS patch. Ian.