|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] tools: honour --libdir when it is passed to ./configure
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. Additionally, the libfsimage plugins are now loaded explicitly from $LIBDIR/fs, removing platform-based decision trees in code. Signed-off-by: Matt Wilson<msw@xxxxxxxxxx> Thanks for the patch! The way FSIMAGE_FSDIR is set is really wrong. diff -r 32034d1914a6 -r 0a592e08ac31 config/StdGNU.mk --- a/config/StdGNU.mk Thu Jun 07 19:46:57 2012 +0100 +++ b/config/StdGNU.mk Wed Jun 20 00:40:15 2012 +0000 @@ -35,7 +35,6 @@ INCLUDEDIR = $(PREFIX)/include LIBLEAFDIR = lib LIBLEAFDIR_x86_32 = lib LIBLEAFDIR_x86_64 ?= lib64 -LIBDIR = $(PREFIX)/$(LIBLEAFDIR) LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32) LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64) LIBEXEC = $(LIBDIR_x86_32)/xen/bin diff -r 32034d1914a6 -r 0a592e08ac31 config/SunOS.mk --- a/config/SunOS.mk Thu Jun 07 19:46:57 2012 +0100 +++ b/config/SunOS.mk Wed Jun 20 00:40:15 2012 +0000 @@ -24,7 +24,6 @@ BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include LIBLEAFDIR = lib LIBLEAFDIR_x86_64 = lib/amd64 -LIBDIR = $(PREFIX)/$(LIBLEAFDIR) LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64) MANDIR = $(PREFIX)/share/man MAN1DIR = $(MANDIR)/man1 Can we clean this a little bit more, and remove LIBDIR_x86_32, LIBLEAFDIR_x86_64, LIBDIR_x86_64, LIBDIR_x86_32 and LIBLEAFDIR? diff -r 32034d1914a6 -r 0a592e08ac31 config/Tools.mk.in --- a/config/Tools.mk.in Thu Jun 07 19:46:57 2012 +0100 +++ b/config/Tools.mk.in Wed Jun 20 00:40:15 2012 +0000 @@ -1,5 +1,7 @@ # Prefix and install folder PREFIX := @prefix@ +exec_prefix := @exec_prefix@ +LIBDIR := @libdir@ LIBLEAFDIR_x86_64 := @LIB_PATH@ # A debug build of tools? diff -r 32034d1914a6 -r 0a592e08ac31 config/x86_64.mk --- a/config/x86_64.mk Thu Jun 07 19:46:57 2012 +0100 +++ b/config/x86_64.mk Wed Jun 20 00:40:15 2012 +0000 @@ -11,7 +11,6 @@ CONFIG_IOEMU := y CFLAGS += -m64 LIBLEAFDIR = $(LIBLEAFDIR_x86_64) -LIBDIR = $(LIBDIR_x86_64) SunOS_LIBDIR = $(SunOS_LIBDIR_x86_64) diff -r 32034d1914a6 -r 0a592e08ac31 tools/libfsimage/Rules.mk --- a/tools/libfsimage/Rules.mk Thu Jun 07 19:46:57 2012 +0100 +++ b/tools/libfsimage/Rules.mk Wed Jun 20 00:40:15 2012 +0000 @@ -1,17 +1,12 @@ include $(XEN_ROOT)/tools/Rules.mk -CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ +CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\" I would prefer to set FSIMAGE_FSDIR or an equivalent define in tools/config.h and include that header in tools/libfsimage/common/fsimage_plugin.h, so we don't have to pass that value from the compiler command line. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |