From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: Re: libcacard is been installed to /usr/lib while libdir=/usr/lib64 Date: Thu, 15 May 2014 11:54:32 -0400 Message-ID: <5374E338.4060908@oracle.com> References: <537162DD.7000304@oracle.com> <1400166650.19926.14.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400166650.19926.14.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 05/15/2014 11:10 AM, Ian Campbell wrote: > On Mon, 2014-05-12 at 20:10 -0400, Zhigang Wang wrote: >> Is this expected? I thought it should be installed into /usr/lib64 as all other >> xen libs. > > I think it depends on how you configured the Xen build -- what options > did you use? > >> Attached patch will change the behavior. Apply it if you think it's what we want. > > I think it probably is but I'll wait for confirmation of the options you > used. I think the problem is simple as this: For xen: ./configure --prefix=/usr --libdir=/usr/lib64 For qemu: we didn't pass the --libdir when we configure it, so it uses the default one: $PREFIX/lib I use RPM %configure macro, and it translates to: + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info There are many other options has the same issue: they may different for qemu and xen. I'm not sure what is the best way to handle it. Thanks, Zhigang