From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Matt Wilson <msw@amazon.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH 1 of 1 v2] tools: honour --libdir when it is passed to ./configure
Date: Thu, 21 Jun 2012 10:53:38 +0200 [thread overview]
Message-ID: <20120621085338.GA18516@aepfle.de> (raw)
In-Reply-To: <1340267605.21872.10.camel@zakaz.uk.xensource.com>
On Thu, Jun 21, Ian Campbell wrote:
> On Wed, 2012-06-20 at 23:51 +0100, Matt Wilson wrote:
> > Currently shared libraries are automatically installed into /usr/lib
> > or /usr/lib64, depending on the supplied --prefix value and
> > $(XEN_TARGET_ARCH). Some systems, like recent Debian and Ubuntu releases,
> > do not use /usr/lib64, but instead /usr/lib/x86_64-linux-gnu.
> >
> > With this change, packagers can supply the desired location for shared
> > libraries on the ./configure command line. Packagers need to note that
> > the default behaviour on 64-bit Linux systems will be to install shared
> > libraries in /usr/lib, not /usr/lib64, unless a --libdir value is provided
> > to ./configure.
Perhaps that should be stated in the README, which states to call just
configure without options.
> > 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?
I'm not sure what the purpose of EXTRA_INCLUDES and EXTRA_LIB is, now
that EXTRA_CFLAGS can be specified, since changeset 25464:75a2bb5db228.
Perhaps its use case should also be added to the README?
Olaf
next prev parent reply other threads:[~2012-06-21 8:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 22:51 [PATCH 0 of 1 v2] tools: honour --libdir when it is passed to ./configure Matt Wilson
2012-06-20 22:51 ` [PATCH 1 " Matt Wilson
2012-06-21 8:33 ` Ian Campbell
2012-06-21 8:51 ` Roger Pau Monne
2012-06-21 8:53 ` Olaf Hering [this message]
2012-06-21 9:21 ` Ian Campbell
2012-06-21 14:35 ` Olaf Hering
2012-06-21 18:43 ` Matt Wilson
2012-06-22 8:26 ` Ian Campbell
2012-06-22 17:43 ` Matt Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120621085338.GA18516@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=msw@amazon.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.