From: Ian Jackson Subject: [PATCH 01/11] xenstore: Use $(PTHREAD_LIBS) not -lpthread Date: Thu, 10 Jul 2014 18:19:44 +0100 Message-ID: <21438.52016.194246.989169@mariner.uk.xensource.com> References: <1405008880-21843-1-git-send-email-ian.jackson@eu.citrix.com> <1405008880-21843-2-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405008880-21843-2-git-send-email-ian.jackson@eu.citrix.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: xen-devel@lists.xensource.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org Ian Jackson writes ("[PATCH 01/11] xenstore: Use $(PTHREAD_LIBS) not -lpthread"): > Signed-off-by: Ian Jackson I discovered that this didn't build in the non-rumpkernel case! This version does. Ian. >From 8d82316c2b922dc490373377207b06b155c56161 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 May 2014 17:06:50 +0100 Subject: [PATCH] xenstore: Use $(PTHREAD_LDFLAGS) and $(PTHREAD_LIBS) not -lpthread Signed-off-by: Ian Jackson --- v3: We need PTHREAD_LDFLAGS too (!) --- tools/xenstore/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index e34bd41..8421865 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -87,7 +87,7 @@ libxenstore.so.$(MAJOR): libxenstore.so.$(MAJOR).$(MINOR) xs.opic: CFLAGS += -DUSE_PTHREAD libxenstore.so.$(MAJOR).$(MINOR): xs.opic xs_lib.opic - $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenstore.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(SOCKET_LIBS) -lpthread $(APPEND_LDFLAGS) + $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenstore.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(SOCKET_LIBS) $(PTHREAD_LIBS) $(APPEND_LDFLAGS) libxenstore.a: xs.o xs_lib.o $(AR) rcs $@ $^ -- 1.7.10.4