[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] stubdom: fix stubdom-vtpm build



On 31/10/16 08:55, Jan Beulich wrote:
>>>> On 28.10.16 at 17:10, <JGross@xxxxxxxx> wrote:
>> stubdom-vtpm needs gmp and expects it under
>> stubdom/cross-root-x86_64/x86_64-xen-elf/lib while gmp seems to install
>> it under stubdom/cross-root-x86_64/x86_64-xen-elf/lib64
> 
> Are you sure this is universal, rather dependent upon some
> (possibly even host) configuration item? I think that some distros
> have switched to (or have always used) /lib as the main library
> directory for x86-64, while others (like SUSE's) stick to the
> originally mandated /lib64. Over the years I have found quite a
> few projects where, in order to become consistent with SUSE's
> model, I had to override the global default of /lib with /lib64 just
> for x86-64 (but not for e.g. ia64).

No, I don't think it is universal. This is the reason I did the move
of the file only in case it is to be found under lib64 but not under
lib.

I've tested the build to break with plain

./configure

and with

./configure --prefix=/usr --libdir=/usr/lib64

which I use normally to match my SUSE environment.

OTOH looking at Wei's recent patch to modify gmp's configure to
specify cross compilation I now believe the correct answer to my
problem is to add

--libdir=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib

to the configure statement of gmp. I'll send V2 of the patch.


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.