Skip to contentSkip to conversation

libxc/Makefile's VPATH issue

DISCUSSION Samuel Thibault 3 participants 4 messages Jun 9, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

c/s 17138 introduced the use of VPATH instead of symlinks to access to libelf files. However, that not only provides access to .c files, but also to .o files. That means that if one compiles the hypervisor before the tools, libxenguest.a contains .o files intended to the hypervisor, containing references to printk, etc. and thus is unusable.

Is there a good reason against reverting to symlinks, or maybe another way to achieve the same?

Samuel

#1 lore raw
Quoted 7 lines · Samuel Thibault

Hello,

c/s 17138 introduced the use of VPATH instead of symlinks to access to libelf files. However, that not only provides access to .c files, but also to .o files. That means that if one compiles the hypervisor before the tools, libxenguest.a contains .o files intended to the hypervisor, containing references to printk, etc. and thus is unusable.

You mean c/s 16891?

Quoted 2 lines

Is there a good reason against reverting to symlinks, or maybe another way to achieve the same?

vpath %.c ../../xen/common/libelf

Perhaps?

-- Keir

Quoted 6 lines

Samuel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 8 lines · Keir Fraser, le Mon 09 Jun 2008 11:54:08 +0100, a écrit :
Quoted 5 lines · Samuel Thibault

c/s 17138 introduced the use of VPATH instead of symlinks to access to libelf files. However, that not only provides access to .c files, but also to .o files. That means that if one compiles the hypervisor before the tools, libxenguest.a contains .o files intended to the hypervisor, containing references to printk, etc. and thus is unusable.

You mean c/s 16891?

Oops, yes, sorry, I was looking in my own tree.

Quoted 6 lines
Quoted 2 lines

Is there a good reason against reverting to symlinks, or maybe another way to achieve the same?

vpath %.c ../../xen/common/libelf

Perhaps?

It does work indeed. I guess we already depend on possibly GNU-only features anyway?

Samuel

#3 lore raw
Quoted 2 lines · Samuel Thibault

It does work indeed. I guess we already depend on possibly GNU-only features anyway?

Yes.

john