From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: [PATCH] Fix bzip2/lzma compilation/linking problems in tools/libxc/Makefile Date: Sun, 23 Aug 2009 20:08:31 +0300 Message-ID: <20090823170831.GG19938@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="81JctsDUVPekGcy+" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --81JctsDUVPekGcy+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, The attached patch fixes two problems in tools/libxc/Makefile in xen-unstable. 1) libxenguest.so.3.4.0 is linked from *.opic files, so the -DHAVE_BZLIB -DHAVE_LZMA CFLAGS need to be added to xc_dom_bzimageloader.opic aswell. 2) There was an ordering/dependency problem with .zlib.deps file generation resulting in missing CFLAGS for xc_dom_bzimageloader.o|.opic compilation. ie. sometimes (for example during rpmbuild) this is what happened: grep: .zlib.deps: No such file or directory - BZIP2 decompression supported - LZMA decompression supported The .zlib.deps file generation was done _after_ the CFLAGS += stuff was ran.. obviously resulting in missing BZIP2/LZMA support. I fixed this by making the .zlib.deps generation being the first thing to run. -- Pasi --81JctsDUVPekGcy+ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="xen-unstable-fix-makefile-bzip2-lzma-support.patch" --- xen-unstable.hg/tools/libxc/Makefile.orig 2009-08-23 19:48:28.000000000 +0300 +++ xen-unstable.hg/tools/libxc/Makefile 2009-08-23 19:48:02.000000000 +0300 @@ -86,7 +86,7 @@ all: build .PHONY: build -build: +build: .zlib.deps $(MAKE) libs .PHONY: libs @@ -175,6 +175,9 @@ xc_dom_bzimageloader.o: .zlib.deps xc_dom_bzimageloader.o: CFLAGS += $(shell grep D .zlib.deps) +xc_dom_bzimageloader.opic: .zlib.deps +xc_dom_bzimageloader.opic: CFLAGS += $(shell grep D .zlib.deps) + libxenguest.so.$(MAJOR).$(MINOR): LDFLAGS += $(shell grep l .zlib.deps) libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $(GUEST_PIC_OBJS) -lz -lxenctrl $(PTHREAD_LIBS) --81JctsDUVPekGcy+ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --81JctsDUVPekGcy+--