[PATCH 2/7] Use $(LIBS) instead of -lpthread when linking tests

Mike Hommey mh+jemalloc at glandium.org
Mon Apr 16 07:30:21 PDT 2012


From: Mike Hommey <mh at glandium.org>

This will allow linking for win32 without pthreads more easily
---
 Makefile.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 6479857..8cd0418 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -133,9 +133,9 @@ build_doc: $(DOCS)
 		 @objroot at lib/libjemalloc at install_suffix@.$(SO)
 	@mkdir -p $(@D)
 ifneq (@RPATH@, )
-	$(CC) -o $@ $< @RPATH@@objroot at lib -L at objroot@lib -ljemalloc at install_suffix@ -lpthread
+	$(CC) -o $@ $< @RPATH@@objroot at lib -L at objroot@lib -ljemalloc at install_suffix@ $(LIBS)
 else
-	$(CC) -o $@ $< -L at objroot@lib -ljemalloc at install_suffix@ -lpthread
+	$(CC) -o $@ $< -L at objroot@lib -ljemalloc at install_suffix@ $(LIBS)
 endif
 
 build_lib_shared: $(DSOS)
-- 
1.7.10




More information about the jemalloc-discuss mailing list