From: Hollis Blanchard Subject: Re: [PATCH] more xenstore makefile fixes Date: Thu, 16 Jun 2005 10:59:29 -0500 Message-ID: <1118937569.15039.6.camel@localhost.localdomain> References: <1118343285.20524.20.camel@thinkpad> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1118343285.20524.20.camel@thinkpad> 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 List-Id: xen-devel@lists.xenproject.org On Thu, 2005-06-09 at 13:54 -0500, Jerone Young wrote: > This allows tools in the python directory to properly link to > libxenstore.a on x86-64. > --- tools/xenstore/Makefile.orig 2005-06-09 12:56:34.000000000 > -0500 > +++ tools/xenstore/Makefile 2005-06-09 13:48:06.000000000 -0500 > @@ -20,6 +20,9 @@ > BASECFLAGS+= -I. > > CFLAGS+=$(BASECFLAGS) > +ifeq ($(XEN_TARGET_ARCH),x86_64) > +CFLAGS += -fPIC > +endif > LDFLAGS=$(PROFILE) -L$(XEN_LIBXC) > TESTDIR=`pwd`/testsuite/tmp > TESTFLAGS=-DTESTING Position Independent Code (PIC) is needed for shared libraries on all architectures. This has come up before, on this list even: http://lists.xensource.com/archives/html/xen-devel/2005-02/msg00241.html I don't expect xenstore would be very performance-critical... --- 1.4/tools/xenstore/Makefile 2005-06-10 03:42:25 -05:00 +++ edited/Makefile 2005-06-16 10:00:53 -05:00 @@ -20,9 +20,7 @@ BASECFLAGS+= -I. CFLAGS += $(BASECFLAGS) -ifeq ($(XEN_TARGET_ARCH),x86_64) CFLAGS += -fPIC -endif LDFLAGS=$(PROFILE) -L$(XEN_LIBXC) TESTDIR=`pwd`/testsuite/tmp TESTFLAGS=-DTESTING Signed-off-by: Hollis Blanchard -- Hollis Blanchard IBM Linux Technology Center