From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: Re: [PATCH][TOOLS] ioemu: linking fix for *BSD Date: Thu, 14 Aug 2008 11:29:46 +0200 Message-ID: <200808141129.46762.Christoph.Egger@amd.com> References: <200808141059.20930.Christoph.Egger@amd.com> <18595.63794.446472.430425@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <18595.63794.446472.430425@mariner.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thursday 14 August 2008 11:21:54 Ian Jackson wrote: > Christoph Egger writes ("[Xen-devel] [PATCH][TOOLS] ioemu: linking fix fo= r=20 *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. ldd qemu-dm shows this: libxenctrl.so.3.2 =3D> not found libxenguest.so.3.2 =3D> not found libxenstore.so.3.0 =3D> not found and launching qemu-dm fails with not finding these three libs. > > - $(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. And $(LIBDIR) is wrong for 64-bit builds on Linux. On *BSD, it doesn't mat= ter if LIBDIR or LIBDIR_x86_64 is used. =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy