From: Ian Jackson Subject: Re: [PATCH][TOOLS] ioemu: linking fix for *BSD Date: Thu, 14 Aug 2008 10:21:54 +0100 Message-ID: <18595.63794.446472.430425@mariner.uk.xensource.com> References: <200808141059.20930.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200808141059.20930.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 ("[Xen-devel] [PATCH][TOOLS] ioemu: linking fix for *BSD"): > Attached patch tells the linker where to find > libxenctrl.so.3.2, libxenguest.so.3.2 and libxenstore.so.3.0 > when launching qemu-dm. I'm confused as to why this is necessary. > - $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) > + $(CC) $(VL_LDFLAGS) -Wl,-rpath,$(LIBDIR_x86_64) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) Surely LIBDIR_x86_64, ie /usr/lib64, should be on the linker path already ? Also I think this is wrong on all 32-bit builds, surely. Ian.