From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: [PATCH 1 of 1 v2] tools: honour --libdir when it is passed to ./configure Date: Thu, 21 Jun 2012 09:51:42 +0100 Message-ID: <4FE2E09E.4000202@citrix.com> References: <4ba90ad045963033e72c.1340232709@kaos-source-31003.sea31.amazon.com> <1340267605.21872.10.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1340267605.21872.10.camel@zakaz.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: Olaf Hering , Ian Jackson , Matt Wilson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell wrote: > On Wed, 2012-06-20 at 23:51 +0100, Matt Wilson wrote: >> SHAREDIR ?= $(PREFIX)/share >> DOCDIR ?= $(SHAREDIR)/doc/xen >> @@ -67,7 +68,7 @@ endef >> >> ifneq ($(EXTRA_PREFIX),) >> EXTRA_INCLUDES += $(EXTRA_PREFIX)/include >> -EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBLEAFDIR) >> +EXTRA_LIB += $(EXTRA_PREFIX)/$(shell basename $(LIBDIR)) > > since we are sort of reverting 16950:0faf620bc749 here this could in > theory $(EXTRA_PREFIX)/$(LIBDIR)? That doesn't remove the need to > include Tools.mk though. :-/ > > Does anyone know if this EXTRA_PREFIX stuff is intended to be used for > hypervisor and other non-tools builds? If not then we could consider > pushing it down a level. > > In the tools case I think we already have a way to inject arbitrary -L > and -I options -- so maybe this can just go away? > > CCing Ian (who wrote 16950) and Olaf, whose been doing stuff in this > area. EXTRA_LIB was keep to maintain backward compatibility, but the use of the APPEND_ and PREPEND_ flags should provide the same functionality with more flexibility (see 24141:078392e5078d). I don't think the hypervisor needs any special libs to build, at least I never had to pass any extra libs to build it on the several not so common systems I've build Xen on (NetBSD and uClibc).